Obvious fixed to the Unit Preview Pane. More reworking needed

This commit is contained in:
Charles Dang 2016-08-13 17:32:15 +11:00
parent 7fb8d7dade
commit 9d3f3442b4
3 changed files with 6 additions and 7 deletions

View file

@ -116,8 +116,7 @@
[column]
vertical_grow = "true"
horizontal_grow = "true"
border = "top"
border_size = 5
{GUI_FORCE_WIDGET_MINIMUM_SIZE 225 300 (
[grid]
[row]
@ -135,8 +134,7 @@
[/row]
[row]
grow_factor = 1
vertical_grow = "true"
horizontal_grow = "true"
[column]
vertical_grow = "true"
horizontal_grow = "true"
@ -150,7 +148,7 @@
[row]
[column]
[spacer]
height = 9
height = 10
[/spacer]
[/column]
[/row]

View file

@ -146,7 +146,8 @@ void tunit_preview_pane::set_displayed_type(const unit_type& type)
type.alignment(),
type.genders().front()));
}
else if(label_details_) {
if(label_details_) {
std::stringstream str;
str << "<small>";

View file

@ -51,8 +51,8 @@ public:
, label_name_(nullptr)
, label_level_(nullptr)
, label_details_(nullptr)
, tree_details_(nullptr)
, label_details_minimal_(nullptr)
, tree_details_(nullptr)
, button_profile_(nullptr)
, image_mods_()
{