On 1/15/16, Eric Wing <[email protected]> wrote: > On 1/15/16, Antonio Scuri <[email protected]> wrote: >> Hi, >> >> In iupgtk_button.c, try adding pixels to the border estimation: >> >> void iupdrvButtonAddBorders(int *x, int *y) >> { >> /* LAYOUT_DECORATION_ESTIMATE */ >> #ifdef WIN32 >> int border_size = 2*5; >> #else >> #ifdef HILDON >> int border_size = 2*7+1; /* borders are not symmetric */ >> #else >> int border_size = 2*5+1; /* borders are not symmetric */ >> #endif >> #endif >> (*x) += border_size; >> (*y) += border_size; >> } >> >> Ultimately we will need an ifdef for Raspbian. >> >> Best, >> Scuri >> >> >> On Thu, Jan 14, 2016 at 10:27 PM, Antonio Scuri <[email protected]> >> wrote: >> >>> Ok Thanks. I think we can easily fix that. Just give me a couple of >>> days. >>> >>> Best, >>> Scuri > > > I (arbitrarily) changed it to > int border_size = 2*15+1; > > It looks better: > http://playcontrol.net/tempdownload/iup_screens_pi/iup_gtk3_sample_border15.png > > I also just tested Debian Jessie (amd64). It seems to have the same > problem as Raspbian Jessie. So I think this is a general problem, and > not Pi specific. > > Thanks, > Eric >
I should point out that the padding also made the buttons much taller with too much padding vertically. A quick digression since I got Debian Jessie (amd64) running...I've been trying to reproduce that initial screwed up size at launch where I can't see the view. I haven't reproduced it exactly, but on rare occasions, I've seen the view be too small for the window (instead of too big). It happens much less frequently than on the Pi. This is speculation, but I can't help wonder if there is some kind of race condition, maybe between when a widget actually gets created and has legitimate values, between an Iup call and the underlying system. Since Pi is slower, maybe the condition hits more often. Thanks, Eric ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ Iup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/iup-users
