Hi Isomorphic,
please take a look at this test case.
Label "Powered by " is not visible in this case.
INHO in this case "animateResize" should resize height of "parent layout" as well and label "Powered by " should always be visible.
SmartClient Version: v12.0p_2019-12-07/PowerEdition Deployment (built 2019-12-07)

Best regards
Pavo
please take a look at this test case.
Label "Powered by " is not visible in this case.
INHO in this case "animateResize" should resize height of "parent layout" as well and label "Powered by " should always be visible.
SmartClient Version: v12.0p_2019-12-07/PowerEdition Deployment (built 2019-12-07)
Code:
package com.smartgwt.sample.client;
import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.core.KeyIdentifier;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.util.Page;
import com.smartgwt.client.util.PageKeyHandler;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.layout.VLayout;
public class BuiltInDS extends VLayout implements EntryPoint {
public void onModuleLoad() {
KeyIdentifier debugKey = new KeyIdentifier();
debugKey.setCtrlKey(true);
debugKey.setKeyName("D");
Page.registerKey(debugKey, new PageKeyHandler() {
public void execute(String keyName) {
SC.showConsole();
}
});
VLayout mainVlayout = new VLayout();
mainVlayout.setWidth(190);
mainVlayout.setHeight(700);
VLayout parentVL = new VLayout();
parentVL.setWidth(190);
parentVL.setHeight100();
parentVL.setOverflow(Overflow.AUTO);
mainVlayout.setMembers(parentVL);
VLayout vl = new CustomVLayout();
parentVL.setMembers(vl);
setMembers(mainVlayout);
draw();
}
private class CustomVLayout extends VLayout {
public CustomVLayout() {
setWidth100();
setHeight(100);
setOverflow(Overflow.CLIP_H);
ChildVLayout childVLayout1 = new ChildVLayout("blue");
ChildVLayout childVLayout2 = new ChildVLayout("yellow");
ChildVLayout childVLayout3 = new ChildVLayout("black");
childVLayout3.animateResize(null, 400);
Label poweredByLabel = new Label("Powered by ");
poweredByLabel.setOverflow(Overflow.CLIP_H);
setMembers(childVLayout1, childVLayout2, childVLayout3, poweredByLabel);
}
}
private class ChildVLayout extends VLayout {
public ChildVLayout(String backgroundColor) {
setHeight(200);
setOverflow(Overflow.CLIP_H);
setBackgroundColor(backgroundColor);
addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
if (event.getFiringCanvas().getHeight() != null && event.getFiringCanvas().getHeight().equals(200)) {
animateResize(null, 400);
} else {
animateResize(null, 200);
}
}
});
}
}
}
Pavo
Comment