Hi Isomorphic,
please see this problem with Canvas.animateResize(). It's happening in this modified online showcase (v12.0p_2019-12-07 and also way older versions)
The issue is that the resize to the small version is not happening. This seems to be somehow timing related, as the problem does not exist with an animateResizeTime: 1.
Please see and test the comments in the sample as well.
I'd expect the size of the "non expanded" red/green at the top to be as the blue placeholders.
I created this sample as I have another, but perhaps related problem. For me in my application, the scollbar (that I can see in the modified sample after load at FullHD resolution) is not always displayed, again something spurious.
Best regards
Blama
please see this problem with Canvas.animateResize(). It's happening in this modified online showcase (v12.0p_2019-12-07 and also way older versions)
The issue is that the resize to the small version is not happening. This seems to be somehow timing related, as the problem does not exist with an animateResizeTime: 1.
Please see and test the comments in the sample as well.
I'd expect the size of the "non expanded" red/green at the top to be as the blue placeholders.
I created this sample as I have another, but perhaps related problem. For me in my application, the scollbar (that I can see in the modified sample after load at FullHD resolution) is not always displayed, again something spurious.
Code:
isc.VLayout.create({ ID: "mainVLayout", width: 400, height: 700, overflow: "auto", maxWidth: 400, membersMargin: 20, members: [ isc.VLayout.create({ ID: "innerVLayout1", animateResizeTime: 400, // No problem with 1, sometimes problem with 75 backgroundColor: "red", width: 200, height: 100, align: "center", // bottom even more strange members: [ isc.Img.create({ layoutAlign: "center", width: 48, height: 48, src: "[SKINIMG]NavigationBar/miniNav_up.svg" }), isc.Label.create({ height: 50, padding: 4, backgroundColor: "#ffffd0", align: "center", valign: "center", wrap: false, showEdges: true, showShadow: true, contents: "innerVLayout1 - action" }) ], click: function() { this.animateResize(null, 300); innerVLayout2.animateResize(null, 100); } }), isc.VLayout.create({ ID: "innerVLayout2", animateResizeTime: 400, // No problem with 1, sometimes problem with 75 backgroundColor: "green", width: 200, height: 100, align: "center", // bottom even more strange members: [ isc.Img.create({ layoutAlign: "center", width: 48, height: 48, src: "[SKINIMG]NavigationBar/miniNav_up.svg" }), isc.Label.create({ height: 50, padding: 4, backgroundColor: "#ffffd0", align: "center", valign: "center", wrap: false, showEdges: true, showShadow: true, contents: "innerVLayout2 - action" }) ], click: function() { this.animateResize(null, 300); innerVLayout1.animateResize(null, 100); } }), isc.VLayout.create({ ID: "innerVLayout3", backgroundColor: "blue", width: 200, height: 100, align: "center", members: [ isc.Img.create({ layoutAlign: "center", width: 48, height: 48, src: "[SKINIMG]NavigationBar/miniNav_up.svg" }), isc.Label.create({ height: 50, padding: 4, backgroundColor: "#ffffd0", align: "center", valign: "center", wrap: false, showEdges: true, showShadow: true, contents: "innerVLayout3 - filler" }) ] }), isc.VLayout.create({ ID: "innerVLayout4", backgroundColor: "blue", width: 200, height: 100, align: "center", members: [ isc.Img.create({ layoutAlign: "center", width: 48, height: 48, src: "[SKINIMG]NavigationBar/miniNav_up.svg" }), isc.Label.create({ height: 50, padding: 4, backgroundColor: "#ffffd0", align: "center", valign: "center", wrap: false, showEdges: true, showShadow: true, contents: "innerVLayout4 - filler" }) ] }), isc.VLayout.create({ ID: "innerVLayout5", backgroundColor: "blue", width: 200, height: 100, align: "center", members: [ isc.Img.create({ layoutAlign: "center", width: 48, height: 48, src: "[SKINIMG]NavigationBar/miniNav_up.svg" }), isc.Label.create({ height: 50, padding: 4, backgroundColor: "#ffffd0", align: "center", valign: "center", wrap: false, showEdges: true, showShadow: true, contents: "innerVLayout5 - filler" }) ] }), isc.Label.create({ contents: "Collapse all", left: 120, click: function() { innerVLayout2.animateResize(null, 100); innerVLayout2.animateResize(null, 100); } }) ] }); innerVLayout1.click();
Blama
Comment