1. #1
    Sencha User
    Join Date
    Jul 2008
    Vote Rating
    jash is on a distinguished road


    Default How to change bodyStyle of "running window" to show grid and how to snap to it

    How to change bodyStyle of "running window" to show grid and how to snap to it

    I would like to change the bodyStyle of an Ext.window.Window after it is rendered (change background picture)

    Before I call the .show() I can set it by using:
    Ext.apply(x,{bodyStyle:'background-image:url(/work/Grid_'+gridSize.value+'.png) !important'});

    on that window I have a picture with:
    resizable : {
    dynamic : false,
    listeners : {
    resizedrag : function(me, width, height, e){

    the resizedrag event fires well and gives me width and height values.

    Now I must somehow set the me.getTarget.width (and height) after some grid snap calculations

    I just cannot figure out how to do that... using Ext4

    Last edited by jash; 5 Apr 2011 at 5:30 AM. Reason: accedentially posted before done writing

Similar Threads

  1. Is there a "snap-to-grid" feature for drag/resize?
    By panupat in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 16 Aug 2011, 6:24 AM
  2. How to make a Combobox "snap back" to the last valid value?
    By dewoob in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 9 Jun 2009, 4:08 AM
  3. "invalid property value" caused by bodyStyle in IE
    By zig999 in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 8 Jun 2009, 10:11 PM
  4. Can't show a window on "onSuccess" method
    By edumrf in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 25 May 2009, 4:42 AM
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