Makes the crop dimension and PPI boxes (Transform > Crop) stack vertically so that the right panel can be narrower, fixing issue 1075
This commit is contained in:
@@ -114,15 +114,15 @@ Crop::Crop (): Gtk::VBox(), FoldableToolPanel(this) {
|
||||
ppi->set_size_request (60, -1);
|
||||
hb4->pack_start (*ppi);
|
||||
|
||||
sizebox = Gtk::manage (new Gtk::HBox());
|
||||
sizebox = Gtk::manage (new Gtk::VBox());
|
||||
|
||||
sizecm = Gtk::manage (new Gtk::Label (M("GENERAL_NA") + " cm x " + M("GENERAL_NA") + " cm"));
|
||||
sizein = Gtk::manage (new Gtk::Label (M("GENERAL_NA") + " in x " + M("GENERAL_NA") + " in"));
|
||||
|
||||
sizebox->pack_start (*sizecm, Gtk::PACK_SHRINK, 4);
|
||||
sizebox->pack_start (*Gtk::manage (new Gtk::VSeparator()), Gtk::PACK_SHRINK, 6);
|
||||
sizebox->pack_start (*Gtk::manage (new Gtk::HSeparator()), Gtk::PACK_SHRINK, 6);
|
||||
sizebox->pack_start (*sizein, Gtk::PACK_SHRINK, 4);
|
||||
sizebox->pack_start (*Gtk::manage (new Gtk::VSeparator()), Gtk::PACK_SHRINK, 6);
|
||||
sizebox->pack_start (*Gtk::manage (new Gtk::HSeparator()), Gtk::PACK_SHRINK, 6);
|
||||
sizebox->pack_start (*hb4, Gtk::PACK_SHRINK, 2);
|
||||
|
||||
ppibox->pack_start (*sizebox, Gtk::PACK_SHRINK, 1);
|
||||
|
@@ -50,7 +50,7 @@ class Crop : public Gtk::VBox, public CropGUIListener, public FoldableToolPanel,
|
||||
Gtk::Label* sizecm;
|
||||
Gtk::Label* sizein;
|
||||
Gtk::VBox* ppibox;
|
||||
Gtk::HBox* sizebox;
|
||||
Gtk::VBox* sizebox;
|
||||
int maxw, maxh;
|
||||
int nx, ny, nw, nh;
|
||||
int lastRotationDeg;
|
||||
|
Reference in New Issue
Block a user