diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-09-05 18:53:49 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-09-05 18:53:49 +0000 |
| commit | d351f0cea17314caa740cbf7f6e90fab213a2d98 (patch) | |
| tree | d609d7670d5f12da4f7a591ad4f92a277a9c5ff8 /src/ui/dialog/document-properties.cpp | |
| parent | Make rasterization of filters into pdf respect the requested dpi. (diff) | |
| download | inkscape-d351f0cea17314caa740cbf7f6e90fab213a2d98.tar.gz inkscape-d351f0cea17314caa740cbf7f6e90fab213a2d98.zip | |
The page size table in Document Properties should use the available vertical space
(bzr r6761)
Diffstat (limited to 'src/ui/dialog/document-properties.cpp')
| -rw-r--r-- | src/ui/dialog/document-properties.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp index a69e8858f..a2d5b50ed 100644 --- a/src/ui/dialog/document-properties.cpp +++ b/src/ui/dialog/document-properties.cpp @@ -82,7 +82,7 @@ DocumentProperties::getInstance() DocumentProperties::DocumentProperties() : UI::Widget::Panel ("", "dialogs.documentoptions", SP_VERB_DIALOG_NAMEDVIEW), - _page_page(1, 1), _page_guides(1, 1), + _page_page(1, 1, true, true), _page_guides(1, 1), _page_snap(1, 1), _page_snap_dtls(1, 1), //--------------------------------------------------------------- _rcb_canb(_("Show page _border"), _("If set, rectangular page border is shown"), "showborder", _wr, false), @@ -196,9 +196,15 @@ attach_all(Gtk::Table &table, Gtk::Widget *const arr[], unsigned const n, int st } else { - if (arr[i+1]) + if (arr[i+1]) { + Gtk::AttachOptions yoptions = (Gtk::AttachOptions)0; + if (dynamic_cast<Inkscape::UI::Widget::PageSizer*>(arr[i+1])) { + // only the PageSizer in Document Properties|Page should be stretched vertically + yoptions = Gtk::FILL|Gtk::EXPAND; + } table.attach(*arr[i+1], 1, 3, r, r+1, - Gtk::FILL|Gtk::EXPAND, (Gtk::AttachOptions)0,0,0); + Gtk::FILL|Gtk::EXPAND, yoptions, 0,0); + } else if (arr[i]) { Gtk::Label& label = reinterpret_cast<Gtk::Label&>(*arr[i]); |
