Added option "constrainedwidth true" for ScrollableFrame
This commit is contained in:
parent
22c9a76f27
commit
2ce14eea80
|
@ -141,7 +141,7 @@ proc Settings {nBook} {
|
||||||
|
|
||||||
set scrwin [ScrolledWindow $main.scrwin -relief flat -bd 2 -bg $editor(bg)]
|
set scrwin [ScrolledWindow $main.scrwin -relief flat -bd 2 -bg $editor(bg)]
|
||||||
#pack $scrwin -fill both -expand true
|
#pack $scrwin -fill both -expand true
|
||||||
set scrfrm [ScrollableFrame $main.frm -bg $editor(bg)]
|
set scrfrm [ScrollableFrame $main.frm -bg $editor(bg) -constrainedwidth true]
|
||||||
pack $scrwin -fill both -expand true
|
pack $scrwin -fill both -expand true
|
||||||
pack $scrfrm -fill both -expand true
|
pack $scrfrm -fill both -expand true
|
||||||
|
|
||||||
|
@ -280,7 +280,7 @@ proc Settings {nBook} {
|
||||||
set editFrm [$nb insert end editor -text "[::msgcat::mc "Editor"]"]
|
set editFrm [$nb insert end editor -text "[::msgcat::mc "Editor"]"]
|
||||||
|
|
||||||
set scrwin [ScrolledWindow $editFrm.scrwin -relief flat -bd 2 -bg $editor(bg)]
|
set scrwin [ScrolledWindow $editFrm.scrwin -relief flat -bd 2 -bg $editor(bg)]
|
||||||
set scrfrm [ScrollableFrame $editFrm.frm -bg $editor(bg)]
|
set scrfrm [ScrollableFrame $editFrm.frm -bg $editor(bg) -constrainedwidth true]
|
||||||
pack $scrwin -fill both -expand true -fill both
|
pack $scrwin -fill both -expand true -fill both
|
||||||
pack $scrfrm -fill both -expand true -fill both
|
pack $scrfrm -fill both -expand true -fill both
|
||||||
$scrwin setwidget $scrfrm
|
$scrwin setwidget $scrfrm
|
||||||
|
@ -896,3 +896,4 @@ proc SaveSettings {} {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user