Comment 2 for bug 856277

Revision history for this message
Mitsuya Shibata (cosmos-door) wrote : Re: Lens button set narraw width which is needed

How to fix(simple way, but workaround):
1. Set nux default font "Ubuntu 11" (nux.diff).
This fix broader label problem as like "All" button. But cann't fix
narrow button as like MultiButton at "Size" in file lens.

2. To set cairo canvas width, dosn't cut off side margin (unity.diff).
Narrow button has not enough space to render. If set cairo canvas
width with cutted of side margin, label width match or over canvas
width, almost label is shortened.

The way is very simple. but has two problems.

1. Font in nux is hard corded. Couldn't follow up changing UI font.
2. Width is calculated excess, and label little over separater line.

I attached patch fo this way.