spin button: Document sizing peculiarities

Document that it is best to explicitly set width-chars and
max-width-chars to avoid surprises.

https://bugzilla.gnome.org/show_bug.cgi?id=727294
This commit is contained in:
Matthias Clasen 2016-01-27 23:30:25 -05:00
parent 03f4666994
commit 79fb921ffc

View File

@ -81,7 +81,11 @@
*
* The main properties of a GtkSpinButton are through an adjustment.
* See the #GtkAdjustment section for more details about an adjustment's
* properties.
* properties. Note that GtkSpinButton will by default make its entry
* large enough to accomodate the lower and upper bounds of the adjustment,
* which can lead to surprising results. Best practice is to set both
* the #GtkEntry::width-chars and #GtkEntry::max-width-chars poperties
* to the desired number of characters to display in the entry.
*
* # CSS nodes
*