SmartClient v9.0p_2014-01-08
Chrome 32.0.1700
IE 8-10
In short, here is what I am attempting:
Using the following code:
When the menu button is clicked, the menu is rendered partially off-screen, adding horizontal scroll bars. I believe this is due to the shadow's sizing; when showShadow is false, the menu is positioned properly.
Chrome 32.0.1700
IE 8-10
In short, here is what I am attempting:
Code:
---------------------------------------------- | HLAYOUT width=100% | | | | [ LABEL width=* ] [ MENUBUTTON ] | ----------------------------------------------
Code:
// Create Menu (taken from example)
var mymenu = isc.Menu.create({
autoDraw: false,
showShadow: true,
shadowDepth: 10,
data: [
{title: "New"} // , {}, .....
]
});
// Create HLayout
var myhlayout = isc.HLayout.create({
width: "100%",
members: [
isc.Label.create({
width: "*",
contents: "TITLE"
}),
isc.MenuButton.create({
title: "MENU",
menu: mymenu
})
]
});
Comment