Tk Source Code

View Ticket
Login
Ticket UUID: 2064914
Title: Ttk::menubutton -width overrides its real width
Type: Bug Version: obsolete: 8.5.4
Submitter: danckaert Created on: 2008-08-21 14:14:06
Subsystem: 88. Themed Tk Assigned To: jenglish
Priority: 5 Medium Severity:
Status: Open Last Modified: 2008-12-28 02:19:53
Resolution: None Closed By:
    Closed on:
Description:
Consider the following example:

pack [text .t]
pack [ttk::menubutton .mb -text somestring -width 1] -fill x

The menubutton is created with "-width 1", but afterwards it becomes bigger because it is packed with -fill x.
The result is that the menubutton's width is indeed increased, but instead of "somestring" it only displays "so".

A ttk::button will display the full string in the same situation, as will a non-ttk menubutton. I think a ttk::menubutton should behave like these.
User Comments: jenglish added on 2008-12-28 02:19:53:
See also #1845164, cause of problem is similar in both cases.