From: Mathieu Baudier Date: Fri, 9 Oct 2020 15:07:29 +0000 (+0200) Subject: Fix style update when clicking on tab. X-Git-Tag: argeo-commons-2.1.89~73 X-Git-Url: https://git.argeo.org/?p=lgpl%2Fargeo-commons.git;a=commitdiff_plain;h=d70cc9a860928c550773a83d882ad093f94e909e Fix style update when clicking on tab. --- diff --git a/org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/TabbedArea.java b/org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/TabbedArea.java index c85111ed5..a1b80706a 100644 --- a/org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/TabbedArea.java +++ b/org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/TabbedArea.java @@ -82,7 +82,7 @@ public class TabbedArea extends Composite { Button title = new Button(sectionHeader, SWT.FLAT); CmsUiUtils.style(title, selected ? tabSelectedStyle : tabStyle); title.setLayoutData(CmsUiUtils.fillWidth()); - title.addSelectionListener((Selected) (e) -> section.moveAbove(null)); + title.addSelectionListener((Selected) (e) -> showTab(tabIndex(section.getNode()))); Node node = section.getNode(); title.setText(Jcr.getTitle(node)); ToolBar toolBar = new ToolBar(sectionHeader, SWT.NONE);