Fix slidervalue not showing up in some cases
The button vibration slider was not showing up on portrat layouts. This commit fixes that issue and maybe some other issues. Change-Id: Ia0c0ed319358db3b99887b3b37aa7737c7caf0cc
This commit is contained in:
+1
-1
@@ -181,6 +181,7 @@ GUISliderValue::GUISliderValue(xml_node<>* node) : GUIObject(node)
|
||||
{
|
||||
string parsevalue = gui_parse_text(attr->value());
|
||||
mPadding = atoi(parsevalue.c_str());
|
||||
mLinePadding = mPadding;
|
||||
}
|
||||
|
||||
attr = child->first_attribute("sliderw");
|
||||
@@ -208,7 +209,6 @@ GUISliderValue::GUISliderValue(xml_node<>* node) : GUIObject(node)
|
||||
|
||||
loadValue(true);
|
||||
|
||||
mLinePadding = mPadding;
|
||||
if (mShowRange)
|
||||
{
|
||||
int textW = std::max(measureText(mMaxStr), measureText(mMinStr));
|
||||
|
||||
Reference in New Issue
Block a user