1. #1
    Ext User sjzaluk's Avatar
    Join Date
    Apr 2008
    Posts
    40
    Vote Rating
    0
    sjzaluk is on a distinguished road

      0  

    Default Constrain Window to Container

    Constrain Window to Container


    I am not able to constrain a window to a container. I know this was brought up in the past with GXT 1.x (http://www.extjs.com/forum/showthread.php?t=63487) but I believe this was going to be a part of 2.X but I could be mistaken. I thought Window.setConstrain(true) would do it but that's not working.

    Thanks,
    Steve

  2. #2
    Ext User sjzaluk's Avatar
    Join Date
    Apr 2008
    Posts
    40
    Vote Rating
    0
    sjzaluk is on a distinguished road

      0  

    Default


    Any info on this? This functionality is critical to making my application meet requirements. I will implement a work around if need be but I believe this should be part of 2.0.

    Thanks,
    Steve

  3. #3
    Ext GWT Premium Member takayser's Avatar
    Join Date
    Oct 2008
    Location
    Lucerne, Switzerland
    Posts
    188
    Vote Rating
    0
    takayser is an unknown quantity at this point

      0  

    Default


    @gxt devlopers, any updates on that? Can we expect this functionality in 2.0?

  4. #4
    Ext User
    Join Date
    Jun 2008
    Posts
    11
    Vote Rating
    0
    calicoder is on a distinguished road

      0  

    Default


    try this

    Code:
    @Override
    	protected void onRender(Element el, int pos) {
    		super.onRender(el, pos);
    		
    		// confine dragging to container element bounds
    		getDraggable().setContainer( (Component) getParent() );
    	}

  5. #5
    Ext User sjzaluk's Avatar
    Join Date
    Apr 2008
    Posts
    40
    Vote Rating
    0
    sjzaluk is on a distinguished road

      0  

    Default


    Thanks. I did implement a solution but it's not perfect. I am having issues when a user repositions a separator when using BorderLayout so I am still working out some kinks. I think something like this should be part of the framework. By the way, what is Window.setContrain() used for if not to constrain that window to a Viewport?

    Thanks,
    Steve

  6. #6
    Ext User
    Join Date
    Jun 2008
    Posts
    11
    Vote Rating
    0
    calicoder is on a distinguished road

      0  

    Default


    that's used if you're creating a dashboard style application so that the Window will stay inside the dashboard interface

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi