Bug 5458 - (int-155395) HildonEntry: Extra padding is undocumented.
(int-155395)
: HildonEntry: Extra padding is undocumented.
Status: NEW
Product: UI Specification
General
: 5.0/(2.2009.51-1)
: All Linux
: Low normal (vote)
: 5.0+
Assigned To: Mikko Nurmi
: ui-specification-bugs
:
: docs
:
:
  Show dependency tree
 
Reported: 2009-10-15 10:12 UTC by Murray Cumming
Modified: 2010-02-11 13:23 UTC (History)
5 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Murray Cumming (reporter) 2009-10-15 10:12:13 UTC
HildonEntry (and maybe other Hildon widgets) has padding/spacing around the
drawn parts of the widget, so that application developers get the correct
(according to the Maemo Master Layout Guide) spacing between widgets when, for
instance, placing them in a GtkVBox with 0 spacing.

This is unlike normal single-item GTK+ widgets, which 
a) Require application developers to specify the spacing in their parent
containers,
b) Do not have useful defaults for spacing.

So this unexpected difference should be documented.
Comment 1 Claudio Saavedra 2009-10-15 11:13:13 UTC
If I understand correctly what you mean, this is done at the theming layer. How
would this be best documented at the toolkit level, if it depends on the
theming engine and layout being used?
Comment 2 Murray Cumming (reporter) 2009-10-15 12:03:35 UTC
Oh, maybe it is. CCing someone who should know.

Even if it is theming, it seems to be happening in the standard theme for
Hildon::Entry but not for Gtk::Entry, though I don't 100% remember now what I
saw in my tests.

Maybe this implementation detail should be mentioned in the Maemo HIG, or one
of the other recently-released layout documents.
Comment 3 Daniel Borgmann 2009-10-15 12:37:29 UTC
Yes, this is part of the themeing. It can be confusing when details like this
are not mentioned in the layout guides, which are generally not written from a
programmer's perspective. I doubt that the API documentation would be the right
place for it though, unless the documentation specifically refers to Maemo 5. 

At the very least this should probably be mentioned in the UI spec[1].


[1]
http://www.forum.nokia.com/info/sw.nokia.com/id/019c2b31-3777-49a0-9257-970d79580756/Hildon_2_2_Widget_UI_Specification.html
Comment 4 Andrew Flegg maemo.org 2009-10-23 15:48:19 UTC
The implementation also causes horrible artifacts when GtkButtons are put over
the top of images:

http://twitpic.com/mknhl

So, I'm going to have to do extra work to draw my own buttons (like Mauku,
Application Manager, Clock, ...).
Comment 5 Alberto Garcia Gonzalez 2010-01-29 17:39:44 UTC
(In reply to comment #3)
> I doubt that the API documentation would be the right place for it
> though, unless the documentation specifically refers to Maemo 5.
>
> At the very least this should probably be mentioned in the UI
> spec[1].

So where should we reassign this bug?