Jump to content

The width of the UniContainerPanel over the entire width of the UniDBGrid basement


artem_niko

Recommended Posts

Can you try this approach?

function pagingBar.afterrender(sender, eOpts)
{
    sender.down("#refresh").hide();
    Ext.defer(function(){
        sender.getRefItems()[sender.getRefItems().length-1].setFlex(1);
        sender.getRefItems()[sender.getRefItems().length-2].destroy();
    }, 100);
}

 

Link to comment
Share on other sites

4 minutes ago, Sherzod said:

Can you try this approach?

function pagingBar.afterrender(sender, eOpts)
{
    sender.down("#refresh").hide();
    Ext.defer(function(){
        sender.getRefItems()[sender.getRefItems().length-1].setFlex(1);
        sender.getRefItems()[sender.getRefItems().length-2].destroy();
    }, 100);
}

 

This make set UniContainerPanel to left:

image.png.3da5d53a0444c213e52207eb27bd6174.png

But, free space exist to the right of the panel...

Link to comment
Share on other sites

2 minutes ago, Sherzod said:

Make a simple testcase if possible, I will check.

But no, you did everything right, the panel stretches across the width of the basement, as it should. Added yellow color to check it, everything is ok.
But, I don't understand why I have buttons whose alignment is set to the right edge, are not located to the right on my yellow panel + UniEdit, despite the fact that it has Align=alClient, it does not stretch to the full width of the yellow panel...

image.png.378f813b90e34f4b876b815a8bd957d4.png

Link to comment
Share on other sites

9 hours ago, artem_niko said:

But no, you did everything right, the panel stretches across the width of the basement, as it should. Added yellow color to check it, everything is ok.
But, I don't understand why I have buttons whose alignment is set to the right edge, are not located to the right on my yellow panel + UniEdit, despite the fact that it has Align=alClient, it does not stretch to the full width of the yellow panel...

image.png.378f813b90e34f4b876b815a8bd957d4.png

Why is UniEdit stretching not working? Does the code of stretching the panel in the basement of the grid affect it?

If I'm writing like this (replace 100 on 0):

function pagingBar.afterrender(sender, eOpts)
{
    sender.down("#refresh").hide();
    Ext.defer(function(){
        sender.getRefItems()[sender.getRefItems().length-1].setFlex(1);
        sender.getRefItems()[sender.getRefItems().length-2].destroy();
    }, 0);    
}

then:

image.png.c9e9761f9866eeed86e9498bd028e070.png

If I'm writing like this:

function pagingBar.afterrender(sender, eOpts)
{
    sender.down("#refresh").hide();
    Ext.defer(function(){
        sender.getRefItems()[sender.getRefItems().length-1].setFlex(1);
        sender.getRefItems()[sender.getRefItems().length-2].destroy();
    }, 10);    
}

image.png.d28d02e49e73152835e8b0a1845b3794.png

then it turns out what is needed, but the alignment goes to the left edge turns out. The buttons are equal on the right side, and the text field should take up the rest of the space.

Link to comment
Share on other sites

24 minutes ago, artem_niko said:

Why is UniEdit stretching not working? Does the code of stretching the panel in the basement of the grid affect it?

If I'm writing like this (replace 100 on 0):

function pagingBar.afterrender(sender, eOpts)
{
    sender.down("#refresh").hide();
    Ext.defer(function(){
        sender.getRefItems()[sender.getRefItems().length-1].setFlex(1);
        sender.getRefItems()[sender.getRefItems().length-2].destroy();
    }, 0);    
}

then:

image.png.c9e9761f9866eeed86e9498bd028e070.png

If I'm writing like this:

function pagingBar.afterrender(sender, eOpts)
{
    sender.down("#refresh").hide();
    Ext.defer(function(){
        sender.getRefItems()[sender.getRefItems().length-1].setFlex(1);
        sender.getRefItems()[sender.getRefItems().length-2].destroy();
    }, 10);    
}

image.png.d28d02e49e73152835e8b0a1845b3794.png

then it turns out what is needed, but the alignment goes to the left edge turns out. The buttons are equal on the right side, and the text field should take up the rest of the space.

Okay, without getting an answer, I found such a solution in the properties of the text field. I will use it for now.

image.png.22734fb85fb9474c486b22c7ced6720c.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...