Results 1 to 3 of 3

Thread: Error panel constrain: true

  1. #1
    Sencha Premium User fabio.policeno's Avatar
    Join Date
    Sep 2010
    Posts
    366
    Answers
    18
    Vote Rating
    7
      0  

    Default Answered: Error panel constrain: true

    Hello,


    Necessary to allow the child to be dragged panel only in the region of its owner, for it used the constrain: true, but is not working properly, as I show in the video, when you release, it is not in the correct position.

    Code:
    Ext.create('Ext.panel.Panel', {    width: 400,
        height: 200,
        renderTo: Ext.getBody(),
        items: [{
            width: 50,
            height: 50,
            draggable: true,
            constrain: true
        },{
            width: 50,
            height: 50,
            draggable: true,
            constrain: true
        }]
    });
    http://screencast.com/t/bIdRu44I

    Thank's!


  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791
    Answers
    585
    Vote Rating
    394
      0  

  3. #3
    Sencha User
    Join Date
    Jun 2013
    Location
    Kiama, Australia
    Posts
    25
    Answers
    2
    Vote Rating
    0
      0  

    Default

    Try using windows rather than panels (your default xtype). I had heaps of issues getting panels to constrain correctly but windows worked perfectly. I assumed it was a bug as mentioned.

Posting Permissions

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