lyx_mirror/src/frontends
Guillaume Munch b5a2f1c7e5 Fix broken layout of the citation dialog (#10019)
7b1107d7 introduced the following inconveniences which are regressions to 2.1:

* The citation dialog can open with vertical scroll bars in the options

* The citation dialog can open with horizontal scroll bars, especially if the
  translated text is longer than the original text (e.g. in FR)

* Resizing the dialog is inconvenient because it increases the gap between the
  options. This is unlike before when the dialog could let us see more of the
  reference list when enlarging.

This is because the QToolbox that the above commit introduced is not natively
aware of the sizes of its page sub-widgets. The widget is not conceived for this
use, where the space is scarce.

Geometry values provided in the ui file (automatically computed by qtcreator I
suppose) somehow gave the illusion that it worked, but relying on such values is
not portable : it does not take into account the specific theme, font sizes and
localization. This explains why it failed on my side and will probably fail in
other settings too.

Luckily, there is a simple way to make QToolbox suitable for the current use,
which is to add the "missing link" which computes its size based on the minimal
sizes of its pages. The result looks very nice and intuitive. It solves all the
aforementioned issues.
2016-04-04 17:58:16 +02:00
..
qt4 Fix broken layout of the citation dialog (#10019) 2016-04-04 17:58:16 +02:00
tests Fix C++11 std::regex incompatibility 2015-11-24 20:31:14 +01:00
.gitignore
alert.h Remove heavy includes 2014-11-30 12:52:01 +01:00
Application.h Auto feature for minibuffer toolbar 2015-07-15 17:41:09 +02:00
Clipboard.h GuiLog: Use GuiClipboard to put the log on the clipboard 2014-04-29 15:38:35 +02:00
CMakeLists.txt
Delegates.h
FontLoader.h Work around broken math symbol display (bug 7954) 2014-03-08 11:13:39 +01:00
FontMetrics.h Use QFontMetrics information for underlines (and friends) width and position 2015-09-08 10:44:03 +02:00
KeyModifier.h
KeySymbol.h
Makefile.am Add cmake files to autoconf's dist 2014-08-31 15:21:20 +02:00
mouse_state.h
Painter.h Change the shape of the parbreak separator 2016-01-24 12:49:02 +01:00
Selection.h
WorkArea.h
WorkAreaManager.cpp
WorkAreaManager.h