Results 1 to 3 of 3

Thread: Appending elements while maintaining the set heigh?

  1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    4
    Vote Rating
    0
      0  

    Default Appending elements while maintaining the set heigh?

    Hi!

    I have a border layout with two fields I want to drag images to. These are set with regions center and north. When I drag an image into the northern region (and position it with appendChild and alignTo), the elements are positioned as expected. The problem is that the regions are expanded in height since the element was added to it. Is there some way I can lock the height of the panels that receive drops?

    I use a DDProxy for the draging, and register both the zones as dropzones using Ext.dd.DropZone(). All help is welcome!

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    87
      0  

    Default

    on the drop event, just set the target's height.

  3. #3
    Ext User
    Join Date
    Apr 2008
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by jgarcia@tdg-i.com View Post
    on the drop event, just set the target's height.
    Thanks! The dropping works a lot better now, but I can't resize the panels anymore (I have a split bar between them). Is there any way I can extract the id of the splitbar, so I can get a hold of its drag/drop events?

Posting Permissions

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