1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resizing Inline Edit box

Discussion in 'XenForo Questions and Support' started by Edrondol, Jan 14, 2011.

  1. Edrondol

    Edrondol Well-Known Member

    Is there a way to do this? I have some users who think it's too small.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Open the post_edit_inline template.

    Find this line:
    Code:
    <form action="{xen:link 'posts/save-inline', $post}" method="post" class="section AutoValidator InlineMessageEditor NoAutoHeader">
    Edit it to add a width attribute:
    Code:
    <form action="{xen:link 'posts/save-inline', $post}" method="post" class="section AutoValidator InlineMessageEditor NoAutoHeader" style="width: 800px">
    Change 800px to your desired width.

    That's not ideal though as it's no longer centred.
    I suspect it's hard coded in the .js.
     
  3. Edrondol

    Edrondol Well-Known Member

    Can it be set to a percentage? Like a fluid style?
     
  4. Shelley

    Shelley Well-Known Member

    It can but you have to set the percentage over 100% which wouldn't guarantee at lower resolutions that you would get less than desirable effects. I tried mine at 120% though it seems that setting it to 100% leaves it at the default size.

    Unless there's another way of getting it to expand without the risk of it causing side scrolling.
     
    DSF likes this.
  5. Edrondol

    Edrondol Well-Known Member

    Got that. Now how's about taller? [​IMG]
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Just add a height property to the inline styling:

    style="width: 800px; height: 600px"
     
  7. Edrondol

    Edrondol Well-Known Member

    ....


    Sonofa...


    There's no reason why I didn't think of that.
     
  8. Lu Kas

    Lu Kas Active Member

  9. Peggy

    Peggy Well-Known Member

    suuuuuuure there is........
     
  10. Edrondol

    Edrondol Well-Known Member

Share This Page