Bugzilla – Attachment 113378 Details for
Bug 83099
UI: Top area of formula bar is missing when expanding with Windows 7 default theme
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Workaround patch 2
0001-fix-calcbarexp.patch.4 (text/plain), 2.20 KB, created by
Tomofumi Yagi
on 2015-02-14 13:37:53 UTC
(
hide
)
Description:
Workaround patch 2
Filename:
MIME Type:
Creator:
Tomofumi Yagi
Created:
2015-02-14 13:37:53 UTC
Size:
2.20 KB
patch
obsolete
>diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx >index bd64166..6c04ff4 100644 >--- a/vcl/source/window/toolbox.cxx >+++ b/vcl/source/window/toolbox.cxx >@@ -2492,7 +2492,23 @@ void ToolBox::ImplFormat( bool bResize ) > // items here. ( Note: assume mnMaxItemHeight is > // equal to the LineSize when multibar has a single > // line size ) >- it->maCalcRect.Top() = it->maRect.Top() ? it->maRect.Top() : ( nY + ( mnMaxItemHeight-aCurrentItemSize.Height())/2 ); >+ // 1. But on Windows7(with default(aero) theme,small >+ // icons), it->maRect.Top() is always 0, probably. >+ // Unfortunately mnMaxItemHeight isn't updated >+ // immediately when the calc bar is expanded. >+ // We need to consider these.Please refer tdf#83099. >+ if ( it->maRect.Top() ) >+ { >+ it->maCalcRect.Top() = it->maRect.Top(); >+ } >+ else if ( mnMaxItemHeight >= aCurrentItemSize.Height() ) >+ { >+ it->maCalcRect.Top() = nY + ( mnMaxItemHeight-aCurrentItemSize.Height())/2; >+ } >+ else >+ { >+ it->maCalcRect.Top() = 0; // workaround for Windows7 with default(aero) theme,small icons >+ } > } > else > it->maCalcRect.Top() = nY+(nLineSize-aCurrentItemSize.Height())/2; >@@ -2516,6 +2532,9 @@ void ToolBox::ImplFormat( bool bResize ) > if ( it->mbShowWindow ) > { > Point aPos( it->maCalcRect.Left(), it->maCalcRect.Top() ); >+ >+ assert( it->maCalcRect.Top() >= 0 ); >+ > it->mpWindow->SetPosPixel( aPos ); > if ( !mbCustomizeMode ) > it->mpWindow->Show();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 83099
:
105284
|
106412
|
107070
|
109935
|
113348
| 113378