Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Simple positioning

    When a button is created it is easily to control its position using the top & left parameters. However put the same button within a window and top/left fails to work.

    Code:
    <body>
    <script type="text/javascript">
    
    isc.Button.create({title:"I can be positioned",  left:200, top: 200, width: 150}),
    
    isc.Window.create({
        ID: "locationWindow",
        title: "A Window",
       width: 712,
       height: 530,
        autoCenter: true,
        items: [
            isc.Button.create({title:"I can't be positioned", left: 200, top: 200, width: 150})
        ]
    });
    
    </Script>
    </body>
    I'm sure this must be something quite simple can anyone help?

    #2
    Figured this out, I needed to use setTop() & setLeft() after the buttons were initially created.

    Comment

    Working...
    X