mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 04:07:42 +08:00
PL-7419 Chart scrollbars lag on tab switching
This commit is contained in:
parent
80c7146df0
commit
46a1cce809
@ -65,7 +65,7 @@ public class CubaTabSheetWidget extends VDDTabSheet {
|
||||
}
|
||||
|
||||
public void assignAdditionalCellStyles(int navIndex) {
|
||||
if (navIndex >=0) {
|
||||
if (navIndex >= 0) {
|
||||
int i = 0;
|
||||
boolean firstVisibleAfterSelection = false;
|
||||
for (Widget widget : tabBar) {
|
||||
@ -118,4 +118,19 @@ public class CubaTabSheetWidget extends VDDTabSheet {
|
||||
super.onClose();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean loadTabSheet(int tabIndex) {
|
||||
Widget currentlyDisplayedWidget = getCurrentlyDisplayedWidget();
|
||||
|
||||
boolean loaded = super.loadTabSheet(tabIndex);
|
||||
if (loaded) {
|
||||
/*
|
||||
* We have to set zero opacity in case of chart inside of tab
|
||||
* because "visibility" property doesn't work for SVG elements
|
||||
* */
|
||||
currentlyDisplayedWidget.getElement().getStyle().setOpacity(0);
|
||||
}
|
||||
return loaded;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user