Wow, three years later and believe it or not, this tool lives on! It's actually an incredibly complex and comprehensive tool used extensively on a massive engineering program. My tiny test program here is but a fraction of a fraction of a simplified snippet of the code!

Anyway, I'm updating the program now and think I've figured out a solution. I wanted to post here in case it helps others.

The $adjuster->slave->GeometryRequest indeed seems to be an answer, albeit there could still be a more elegant solution out there.

By giving GeometryRequest the arguments of ($adjuster->parent->width * 0.2, $adjuster->slave->height) I seem to have gotten it to behave as desired, at least in the full program!

I'm not sure why this works exactly, but assigning the adjuster 20% of the available width seems to help? I should mention there is another method that gets called immediately after, which resizes the column widths in what is actually an MListbox, to occupy the entire available space. However, I was seeing the same problematic behavior without the GeometryRequest, and it seems to work with it!


In reply to Re: Issue packing a Tk::Adjuster by Anonymous Monk
in thread Issue packing a Tk::Adjuster by jbuck

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.