Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    10
    Vote Rating
    0
    mariusz.saternus@markit.com is on a distinguished road

      0  

    Default Answered: Re-sizing children with no Viewport

    Answered: Re-sizing children with no Viewport


    I am using GXT ver 2.2.5 to develop a app that will then get plugged in to a GWT application. The issue is that on the GWT end the component into which my app will get plugged in is a SimplePanel object (and I can't change that). I already learned that SimplePanel doesn't size its children. However one of the requirements that I've got is to develop a fluid UI that will scale across a number of screen sizes. As far as I understand I can't use Viewport because the SimplePanel into which my app will be plugged in is just a part of a bigger UI so introducing the Viewport breaks the existing UI. Is there any other way to dynamically resize children in a panel (i.e a grid)?

  2. If you can get any notification at all about the app resizing, you might be able to use that to calculate the new size for the Grid. For example (and probably overly simplfying, but hopefully it gets the idea across), you might know that whenever the browser window resizes, the grid should be 1/4 the size - 1/2 the height, and 1/2 the width. You might do something like this:

    Code:
        Window.addResizeHandler(new ResizeHandler() {
          @Override
          public void onResize(ResizeEvent event) {
            myGrid.setPixelSize(event.getWidth() / 2, event.getHeight() / 2);
          }
        });

  3. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,716
    Answers
    109
    Vote Rating
    87
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    If you can get any notification at all about the app resizing, you might be able to use that to calculate the new size for the Grid. For example (and probably overly simplfying, but hopefully it gets the idea across), you might know that whenever the browser window resizes, the grid should be 1/4 the size - 1/2 the height, and 1/2 the width. You might do something like this:

    Code:
        Window.addResizeHandler(new ResizeHandler() {
          @Override
          public void onResize(ResizeEvent event) {
            myGrid.setPixelSize(event.getWidth() / 2, event.getHeight() / 2);
          }
        });

  4. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    10
    Vote Rating
    0
    mariusz.saternus@markit.com is on a distinguished road

      0  

    Default


    Yes that helps. Thank you very much

Thread Participants: 1