I figured that's what you were after. That height is controlled by the PanelCard Layout size property. That size is picked up by the Editors and used in a "translate3d" transformation. Your size is probably set at 150px. I don't know if there's a proper way to get this done. It seems to me that the PanelCard should resize according to what's coming in... but it looks like Alpha didn't think that far ahead.
Here's a brute force way to do this. I'd still contact Alpha, if I were you, and ask about how to do this properly. If the solution is currently within Alpha... it's nicely buried.
The code below is specific to my UX... so you need to get your Panel names right for this to work.
In the EditorSet Show Javascript event for the TextBox Editor... I have...
Code:
{dialog.object}.panelSetActive('PANELCARD_2');
{dialog.object}.editorCancel('EDITORSET_2');
var transProp = $("{dialog.ComponentName}.R1.PANEL.1.BODYINNER").style.transform;
var transArr = transProp.split(",");
var transHeight = transArr[1];
if(transHeight == " 450px"){
$("{dialog.ComponentName}.R1.PANEL.1.BODYINNER").style.transform = "translate3d(0px, 150px, 0px)";
$("{dialog.ComponentName}.R1.PANEL.1.PANEL.0").style.transform = "translate3d(0px, -150px, 0px)";
$("{dialog.ComponentName}.R1.PANEL.1.PANEL.0.BODY").style.height = "150px";
}
All my code is the code after the setActivePanel method... which was already in place.
This code closes a potentially open EditorSet_2 (my EditorSet for a NumberPad). The code then gets the Transform settings for the Panel. I need to reset the Panel back to 150px if it has been increased by some other EditorSet.
Here the code for my second EditorSet (my Editor for a NumberPad). The NumberPad must be set to a height of 450px in order to for the full NumberPad to show.
Code:
{dialog.object}.panelSetActive('PANELCARD_2');
{dialog.object}.editorCancel('EDITORSET_1');
setTimeout(function(){
$("{dialog.ComponentName}.R1.PANEL.1.BODYINNER").style.transform = "translate3d(0px, 450px, 0px)";
$("{dialog.ComponentName}.R1.PANEL.1.PANEL.0").style.transform = "translate3d(0px, -450px, 0px)";
$("{dialog.ComponentName}.R1.PANEL.1.PANEL.0.BODY").style.height = "450px";
},50);
Here I am cancelling a potentially open EditorSet_1, and then resizing the Panel to accomodate the Number Pad. I put it within a slight setTimeout Delay so that it's not just "popping" into view.
Here's a video of what all this looks like... http://youtu.be/y_QMBTJYQmQ?hd=1
Bookmarks