Custom Fields
Re-Envisioned
Support Meta Box Tabs Metabox Height Not Expanding

  • Creator
    Topic
  • #10672
    tsquez
    Participant

    Hi there,

    I added a few color fields to a tab area in my metabox but when I click on the color field the metabox does not expand to display it all, it just gets a scroll bar on the right:

    Is there a way to make the metabox expand with the content?

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Author
    Replies
  • #10714
    tsquez
    Participant

    Anyone?

    #10725
    Anh Tran
    Keymaster

    Hi Thomas,

    I’m checking and fixing it. Sorry for not letting you know.

    PS: Version 1.1.0 has fixed this. Please update.

    #10744
    tsquez
    Participant

    Again thank you so much.And again I apologize for being impatient – I just get excited about stuff…lol.

    #10745
    tsquez
    Participant

    Hi there,

    Me again. Unfortunately the metabox is not expanding the way it should. I did update to 1.1.0 and here is a screen shot of what the color field does:

    metabox not expanding

    Shouldn’t it look like this:

    metabox expanded

    Thought I would let you know. Thanks again.

    #10746
    tsquez
    Participant

    OK i think I have found a solution. You need to change this

    .rwmb-color-wrapper .wp-picker-holder {position: absolute;}

    to this:

    .rwmb-color-wrapper .wp-picker-holder {position: relative;}

    makes everything work nicely. I hope this help but please tell me if I am wrong

    Thanks again.

    #10748
    Anh Tran
    Keymaster

    Hi Thomas,

    That’s the intended purpose. The color picker should act like a popup and should not change the height of the outer element (tab panel in this case). Because that might make the layout “dance” when we toggle the picker. And that’s a bad experience if we’re in a group.

    #10755
    tsquez
    Participant

    Ah ok I understand now and that makes perfect sense, however I need you to look at this:

    When I remove the above mentioned css this is what I get. I have a colorbox and just after it, I have a switch.

    As you can see the switch’s z-index is higher than the colorbox. I have tried everything to correct the issue but I can seem to get it. Could you please correct that?

    Thanks for the answer and again all is greatly appreciated.

    #10772
    Anh Tran
    Keymaster

    Hi Thomas,

    I’ve just fixed it. Please try the latest version on Github.

    #10776
    tsquez
    Participant

    Yes sir, works perfectly, thanks again.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Metabox Height Not Expanding’ is closed to new replies.

Newsletter

Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.


grid gear info copy caret-up caret-down trash