Skip to content

Commit

Permalink
use getMainCurrentView instead of CurrentView
Browse files Browse the repository at this point in the history
  • Loading branch information
Leny Bernard committed Jul 18, 2016
1 parent bcb1527 commit d5c6f37
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Resolver/WidgetLocaleSwitcherContentResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getWidgetStaticContent(Widget $widget)
{
$widgetParams = parent::getWidgetStaticContent($widget);

$currentView = $this->currentViewHelper->getCurrentView();
$currentView = $this->currentViewHelper->getMainCurrentView();
$viewTranslations = $currentView->getTranslations();
unset($this->locales[$currentView->getCurrentLocale()]);

Expand Down
52 changes: 25 additions & 27 deletions Resources/style/locale-switcher.scss
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
#header {
.localeSwitcher {
z-index: 1;
.btn {
padding-top: 6px;
padding-right: 7px;
padding-bottom: 6px;
padding-left: 7px;
line-height: 18px;
}
.dropdown-menu {
min-width: 0;
> li > a {
padding: 4px 0;
width: 56px;
text-align: center;
}
}
.localeSwitcher-flag {
width: 24px;
height: 24px;
}
.localeSwitcher-flag + .caret {
margin-left: 6px;
}
.caret + .localeSwitcher-flag {
margin-left: 6px;
.localeSwitcher {
z-index: 1;
.btn {
padding-top: 6px;
padding-right: 7px;
padding-bottom: 6px;
padding-left: 7px;
line-height: 18px;
}
.dropdown-menu {
min-width: 0;
> li > a {
padding: 4px 0;
width: 56px;
text-align: center;
}
}
.localeSwitcher-flag {
width: 24px;
height: 24px;
}
.localeSwitcher-flag + .caret {
margin-left: 6px;
}
.caret + .localeSwitcher-flag {
margin-left: 6px;
}
}

0 comments on commit d5c6f37

Please sign in to comment.