Kaydet (Commit) e059883f authored tarafından Ivan Timofeev's avatar Ivan Timofeev

gtk: don't make editboxes taller than needed

Change-Id: I248d6668d1e9c5ec834cd8268d853ec03a2f859b
üst 04f2f05a
......@@ -1144,7 +1144,7 @@ sal_Bool GtkSalGraphics::getNativeControlRegion( ControlType nType,
GtkRequisition aReq;
gtk_widget_size_request( widget, &aReq );
Rectangle aEditRect = rControlRegion;
long nHeight = (aEditRect.GetHeight() > aReq.height+1) ? aEditRect.GetHeight() : aReq.height+1;
long nHeight = (aEditRect.GetHeight() > aReq.height) ? aEditRect.GetHeight() : aReq.height;
aEditRect = Rectangle( aEditRect.TopLeft(),
Size( aEditRect.GetWidth(), nHeight ) );
rNativeBoundingRegion = aEditRect;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment