Results 1 to 4 of 4

Thread: Window shadows do not follow resize events

  1. #1

    Default Window shadows do not follow resize events

    I have windows being dynamically created in a viewport (center) where the scripts (as panels) are downloaded from the server upon request, eval'd, then instantiated within a window constrained to the center portion of the viewport. On automatic resizing (not user resize, but say paging adjustments), the shadow of the window does not follow. Normally I would think that the viewport region is responsible for this, but I cannot seem to figure out a way to get that event to fire. I have tried manually creating custom events, used syncShadow(), etc. Right now I just have shadows turned off, but turned them back on to get this screen shot ->

    Screen shot 2011-01-21 at 8.13.25 AM copy.png

    Any opinions help. BTW, please don't ask me to submit code, there is WAY to much to submit for this. I am just looking for opinions on strategies to fix this.

  2. #2
    Sencha User
    Join Date
    Oct 2010
    Posts
    157

    Default

    you see ? you try to impose to people to give you solutions without code... You wait for opinions... And there are exactly none... Be cool man ! :-)
    So, my first opinion, without seeing your code is to see if you correctly point to the blank image.... Something like this :

    Code:
    <script type="text/javascript">
       Ext.onReady(function(){
           Ext.BLANK_IMAGE_URL='images/s.gif';
    see on firebug if you load it...
    Generally, I dream more than the others... So... I imagine... :-) But, without code there are 90% that this still only a dream... :-)

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    For autoHeight:true windows, Ext isn't notified when the window height changes due to one of the inner components resizing. You will indeed manually have to call syncShadow every time this happens (e.g. by calling it from expand/collapse handlers etc.).

    To avoid this I recommend creating fixed height windows and configuring your layout so the inner components get resized to fill the available space.

  4. #4

    Default

    Thanks Condor. The reasoning is what we thought. Actually working on the missing communications bus Ext seems to be lacking, so will try to be integrating that patch there. I have also noticed this issue on their demo pages. Thought it was me at first. So did my boss. lol.

    For valititi: I have extended nearly every view/store/layout/etc class in the sencha lib and have extended those extensions even further multiple times to create fully custom objects that a 200 level cs student could even code. I even have overwritten Ext.extend so it can use multiple parents for inheritance and integrated my core objects at the lowest levels of the code. You really want to see all of that so you can "trace my error"???

Similar Threads

  1. windows and shadows - HOW to sync on resize?
    By Nightwish in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 12 Jan 2011, 8:46 AM
  2. disable shadows in Ext.Window
    By chrizmaster in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 27 Apr 2010, 4:39 AM
  3. Replies: 3
    Last Post: 18 Jun 2009, 2:51 PM
  4. Replies: 1
    Last Post: 5 Feb 2009, 2:51 PM
  5. How to resize the inner div follow window's resized in a borderlayout
    By hahaEr2003 in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 28 Apr 2007, 9:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •