Hiding a layout and later making it visible is causing the grouping frame to not show properly. The top of the grouping frame gets chopped. The group title is also not aligned properly.
Following is the code which can be used to reproduce this problem.
Code below uses a timer to make the layout visible after 5 seconds. Note that if you comment out the line "layout2.hide()" then it draws the grouping frame properly.
Please also note that were seeing this issue Chrome 55.0.2883.95 (64-bit) running on Macbook Pro OS version 10.11.6 ( El Capitan ). Issue is seen on multiple systems.
Issue does not appear if we use the latest FireFox.
We are using SmartGWT 5.1 built on 2016 09 16
We also think that the issue started happening after a recent Chrome update. We do not remember seeing this issue before.
public void onModuleLoad()
{
VLayout main = new VLayout();
main.setWidth100();
main.setHeight100();
HLayout layout1 = new HLayout();
layout1.setBackgroundColor("#F1F1F1");
layout1.setHeight(40);
layout1.setOverflow(Overflow.VISIBLE);
final HLayout layout2 = new HLayout();
layout2.setIsGroup(true);
layout2.setGroupTitle( "Test" );
layout2.setMargin(2);
main.addMembers( layout1, layout2 );
layout2.hide();
Timer refreshTimer = new Timer() {
@Override
public void run() {
layout2.show();
}
};
refreshTimer.scheduleRepeating(5000);
RootLayoutPanel.get().add(main);
}
Following is the code which can be used to reproduce this problem.
Code below uses a timer to make the layout visible after 5 seconds. Note that if you comment out the line "layout2.hide()" then it draws the grouping frame properly.
Please also note that were seeing this issue Chrome 55.0.2883.95 (64-bit) running on Macbook Pro OS version 10.11.6 ( El Capitan ). Issue is seen on multiple systems.
Issue does not appear if we use the latest FireFox.
We are using SmartGWT 5.1 built on 2016 09 16
We also think that the issue started happening after a recent Chrome update. We do not remember seeing this issue before.
public void onModuleLoad()
{
VLayout main = new VLayout();
main.setWidth100();
main.setHeight100();
HLayout layout1 = new HLayout();
layout1.setBackgroundColor("#F1F1F1");
layout1.setHeight(40);
layout1.setOverflow(Overflow.VISIBLE);
final HLayout layout2 = new HLayout();
layout2.setIsGroup(true);
layout2.setGroupTitle( "Test" );
layout2.setMargin(2);
main.addMembers( layout1, layout2 );
layout2.hide();
Timer refreshTimer = new Timer() {
@Override
public void run() {
layout2.show();
}
};
refreshTimer.scheduleRepeating(5000);
RootLayoutPanel.get().add(main);
}
Comment