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

      0  

    Default 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,
    pinned:true,
    handles:'all',
    listeners : {
    resizedrag : function(me, width, height, e){
    console.log(.....);
    }


    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

    Jash
    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