Good people of Isomorphic,
I’d like to create a plain (no header or footer) modal dialog with rounded corners and translucent edges (with a modal mask, of course). I will dismiss it with a custom button, so no problem there.
When I try to do this I can’t seem to get the bottom corners to display properly. The top corners are rounded, but not the bottom ones. The seem to get clipped.
Suggestions?
Thanks,
Kirk Austin
Not sure what approach you’ve taken (post code for best results), but the BlackOps skin already does this - load any page in BlackOps and try isc.say(“foo”).
I tried this
// set up the dialog
KIRKAUSTIN.Dialog = isc.Window.create({
ID: “modalWindow”,
title: “Modal Window”,
//autoSize:true,
width: 400,
height: 200,
padding: 40,
autoCenter: true,
isModal: true,
showModalMask: true,
autoDraw: false,
showHeader:false,
showFooter: false,
showStatusBar: false,
canDragResize: false,
showShadow: false,
showEdges:true,
edgeShowCenter:true,
edgeImage:“corners/glow_35.png”,
edgeSize:35,
edgeOffset:35,
items: [
isc.DynamicForm.create({
autoDraw: false,
height: 48,
padding:4,
fields: [
{
type: “button”,
title: “Done”,
click: “modalWindow.hide()”
}
]
})
]
});
Not like Black Ops
No, Black Ops does not do what I’m trying to do. It does not have translucent edges with large rounded corners ala glow_35.png.
Yes, BlackOps has translucent Windows. It’s an intentionally subtle effect at 85% opacity. Drag the window over something with a clear pattern to see it.
As far as your attempt, each skin has defaults for the different edgeOffsetLeft/Top/Right et al properties to match the media for that skin. Either check the defaults for the skin you are based on in load_skin.js and override as necessary, or, brute force, set everything so it works with any base skin.
That worked
Thanks for the tip.
Setting all of the edge offsets separately did the trick.