浏览代码

Select element: Avoid applying properties to selectbox scrollbar. Fixes unintended clipping of the scrollbar.

Michael Ragazzon 4 年之前
父节点
当前提交
ad1fe2872a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/Core/Elements/WidgetDropDown.cpp

+ 1 - 1
Source/Core/Elements/WidgetDropDown.cpp

@@ -434,7 +434,7 @@ int WidgetDropDown::GetNumOptions() const
 void WidgetDropDown::OnChildAdd(Element* element)
 void WidgetDropDown::OnChildAdd(Element* element)
 {
 {
 	// We have a special case for 'data-for' here, since that element must remain hidden.
 	// We have a special case for 'data-for' here, since that element must remain hidden.
-	if (element->GetParentNode() != selection_element || element->HasAttribute("data-for"))
+	if (element->GetParentNode() != selection_element || element->HasAttribute("data-for") || element->GetTagName() != "option")
 		return;
 		return;
 
 
 	// Force to block display. Register a click handler so we can be notified of selection.
 	// Force to block display. Register a click handler so we can be notified of selection.