diff options
Diffstat (limited to 'xfa/fwl/core/cfwl_scrollbar.cpp')
-rw-r--r-- | xfa/fwl/core/cfwl_scrollbar.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/xfa/fwl/core/cfwl_scrollbar.cpp b/xfa/fwl/core/cfwl_scrollbar.cpp index 8b3ce51195..6c2ad99601 100644 --- a/xfa/fwl/core/cfwl_scrollbar.cpp +++ b/xfa/fwl/core/cfwl_scrollbar.cpp @@ -62,25 +62,6 @@ FWL_Type CFWL_ScrollBar::GetClassID() const { return FWL_Type::ScrollBar; } -void CFWL_ScrollBar::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) { - if (!bAutoSize) { - rect = m_pProperties->m_rtWidget; - return; - } - - rect.Set(0, 0, 0, 0); - FX_FLOAT* pfMinWidth = static_cast<FX_FLOAT*>( - GetThemeCapacity(CFWL_WidgetCapacity::ScrollBarWidth)); - if (!pfMinWidth) - return; - if (IsVertical()) - rect.Set(0, 0, (*pfMinWidth), (*pfMinWidth) * 3); - else - rect.Set(0, 0, (*pfMinWidth) * 3, (*pfMinWidth)); - - InflateWidgetRect(rect); -} - void CFWL_ScrollBar::Update() { if (IsLocked()) return; |