Announcement

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

    tracking change in layout position

    I have two layouts.

    One layout is embedded in another layout and so its position is controlled by its parent’s position.

    The other layout is independent of the first and is positioned relative to the first layout.

    When the browser window is zoomed in or out, the position of the first layout changes on the screen.

    I would like to be able to change the position of the second layout so that it stays in a position relative to the first layout.

    However, I have not found a way to track the change in position of the first layout when there are changes to the browser window such as zoom in or zoom out.

    I have tried adding these handlers: addMovedHandler, addDrawHandler, and addResizedHandler.

    None of these handlers are called when zoom in our zoom out is done on the browser window causing the first layout to move around on the screen.

    This results in the first layout moving its position on the screen, but the second layout stays position in the same place, which is wrong.

    How can I make sure the second layout tracks the first layout so that its relative position to the first layout stays the same?

    #2
    Browser zoom is not yet a fully supported mechanism - too many browser bugs to be supportable across all browsers - please see the details in the FAQ.
    Last edited by Isomorphic; 28 Jul 2015, 10:21. Reason: Clarified zoom support

    Comment


      #3
      Originally posted by Isomorphic View Post
      Browser resize is not yet a fully supported mechanism - too many different behaviors across browsers - please see the details in the FAQ.
      Would you please provide the URL to the FAQs you referenced?

      Is there any way to have one layout anchored to the position of another layout that is not contained by that layout?

      Comment


        #4
        You may want to provide a screen shot.

        You said that the resized handler, draw handler, etc. are not called - did you try to add them to the layout that is respositioned when the browser is zoomed?

        Comment

        Working...
        X