Changeset 5122


Ignore:
Timestamp:
Mar 12, 2010, 9:56:10 PM (14 years ago)
Author:
ronosman
Message:

Fix sizer expand issues for comment and privacy level properties.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/GUI/Layout/PhotoPropertiesCategoriesTags.pm

    r5120 r5122  
    128128    );
    129129
    130     $topsizer->Add(
     130    my $sizer_comment = Wx::BoxSizer->new( wxHORIZONTAL );
     131    $sizer_comment->Add(
    131132        TextField(
    132133            $parent,
    133134            $main::COMMENT,
    134135            $main::PHOTO_PROPERTIES_COMMENT,
    135             1
     136            1,
     137            wxTE_MULTILINE
    136138        ),
    137139        1,
     
    139141        2
    140142    );
     143
     144    $topsizer->Add( $sizer_comment, 1, wxEXPAND|wxALL, 2 );
    141145
    142146    my $sizer_author_create = Wx::BoxSizer->new( wxVERTICAL );
     
    165169    my $sizer_author_create_privacy = Wx::BoxSizer->new( wxHORIZONTAL );
    166170
    167     $sizer_author_create_privacy->Add($sizer_author_create, 0, wxEXPAND|wxALL, 0);
    168 
    169     $sizer_author_create_privacy->Add(
     171    my $sizer_privacy = Wx::BoxSizer->new( wxHORIZONTAL );
     172
     173    $sizer_privacy->Add(
    170174        ChoiceField(
    171175            $parent,
    172176            $main::PRIVACY_LEVEL,
    173177            $main::PHOTO_PROPERTIES_PRIVACY_LEVEL,
    174             1
    175178        ),
    176179        1,
    177         wxEXPAND|wxALL,
    178         2
    179     );
     180        wxALL,
     181        2
     182    );
     183
     184    $sizer_author_create_privacy->Add($sizer_author_create, 0, wxEXPAND|wxALL, 0);
     185    $sizer_author_create_privacy->Add($sizer_privacy, 1, wxEXPAND|wxALL, 0);
     186
    180187
    181188    $topsizer->Add( $sizer_author_create_privacy, 0, wxEXPAND|wxALL, 2 );
     
    191198
    192199sub TextField {
    193     my ( $parent, $id_label, $id_textctrl, $expand ) = @_;
    194 
    195     $expand ||=0;
     200    my ( $parent, $id_label, $id_textctrl, $expand, $style ) = @_;
     201
     202    $expand||=0;
     203    $style||0;
    196204
    197205    my( $sizer ) = Wx::BoxSizer->new( wxVERTICAL );
     
    218226            wxDefaultPosition,
    219227            [-1,-1],
    220             0
     228            $style
    221229        ),
    222230        $expand,
     
    298306            0
    299307        ),
    300         1,
     308        $expand,
    301309        wxEXPAND|wxALL,
    302310        1
Note: See TracChangeset for help on using the changeset viewer.