SmartClient Version: v10.0p_2015-03-10/Pro Deployment (built 2015-03-10)
Hi, I have a toolstrip similar to the one in:
http://www.smartclient.com/smartgwt/showcase/#timeline_filtering_new
but i have run into a problem when I try to show/hide it via animation.
When pressing the button twice to hide and show the toolstrip again, it looks like the height of the toolstrip is calculated incorrectly. See attached screenshot.
TestCase:
Hi, I have a toolstrip similar to the one in:
http://www.smartclient.com/smartgwt/showcase/#timeline_filtering_new
but i have run into a problem when I try to show/hide it via animation.
When pressing the button twice to hide and show the toolstrip again, it looks like the height of the toolstrip is calculated incorrectly. See attached screenshot.
TestCase:
Code:
final ToolStrip filterToolStrip = new ToolStrip(); Button filterButton = new Button("Show/Hide Filter"); filterButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { if(filterToolStrip.isVisible()) filterToolStrip.animateHide(AnimationEffect.SLIDE); else filterToolStrip.animateShow(AnimationEffect.SLIDE); } }); FormItem filterText = new FormItem("filterItem"); filterText.setTitle("Filter by Something"); filterText.setTitleOrientation(TitleOrientation.TOP); filterToolStrip.addFormItem(filterText); VLayout layout = new VLayout(10); layout.addMembers(filterButton, filterToolStrip); layout.draw();
Comment