Results 1 to 8 of 8

Thread: Stick Window to right top corner

  1. #1

    Default Stick Window to right top corner

    How can I stick non-movable, non-closeble Ext.Window to right top corner of root Window?

    Thank you.

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    closable: false, draggable: false

    And then align the Window's Element 'tr-tr' with document.body

  3. #3

    Default

    Thank you, it works, but the window is moving outside visible area on alignTo, and it aligns left top corner only on redraw, for example, when I'm resizing my root window...

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Try using anchorTo

  5. #5
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Or just set the Window's style to

    Code:
    {
        top: 0,
        left: '',
        right: 0
    }

  6. #6
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Unfortunately, right:0 doesn't work in IE6/7.

  7. #7

    Default

    Quote Originally Posted by Animal View Post
    Try using anchorTo
    Actually I was using exactly anchorTo, alignTo don't work at all
    Code:
        var w = new Ext.Window({ title: "hi", width: 200, height: 100, closable: false, draggable: false });
        w.show(this);
        w.anchorTo(document.body, "tr-tr");

  8. #8
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Quote Originally Posted by Condor View Post
    Unfortunately, right:0 doesn't work in IE6/7.
    Here at work we deprecate use of those browsers. IE6 particularly we do not prioritize issues with it over anything

Similar Threads

  1. Component Window, Start in corner right in top
    By Perfect Lion in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 25 Feb 2010, 12:42 PM
  2. Button on right-top corner in tool bar
    By sokulkarni in forum Community Discussion
    Replies: 0
    Last Post: 6 Nov 2009, 1:09 AM
  3. Replies: 2
    Last Post: 25 Sep 2008, 9:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •