Skip to content

Commit

Permalink
fix default height
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Sep 29, 2024
1 parent 95b9603 commit 9ded519
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Prima/Dialog/FileDialog.pm
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,11 @@ use vars qw(@ISA @images);

sub profile_default
{
my %sup = %{$_[ 0]-> SUPER::profile_default};
my $sup = $_[ 0]-> SUPER::profile_default;
return {
%sup,
%$sup,
style => cs::DropDownList,
height => $sup{ editHeight},
height => $sup->{editHeight},
firstDrive => 'A:',
drive => 'C:',
editClass => 'Prima::DriveComboBox::InputLine',
Expand Down
4 changes: 3 additions & 1 deletion Prima/Widget/Date.pm
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ use Prima qw(Calendar);

sub profile_default
{
my $d = $_[0]->SUPER::profile_default;
return {
%{ $_[0]->SUPER::profile_default },
%$d,
date => $_[0]->time2date(time),
format => $_[0]->default_format,
style => cs::DropDown,
height => $d->{editHeight},
editClass => 'Prima::Widget::Date::Input',
listClass => 'Prima::Widget::Date::List',
};
Expand Down

0 comments on commit 9ded519

Please sign in to comment.