Kaydet (Commit) 86d9b85f authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Tomaž Vajngerl

Fix multiline tabs drawing of first / last tab

Use is{Left,Right}Aligned instead of is{First,Last}. In multi-line
tabs, not only first/last item needs to be drawn differently, but
also some middle, which is now the first in the new line now.

Change-Id: I81ddde192eca794f16df98d629f47991c59732c7
Reviewed-on: https://gerrit.libreoffice.org/68945
Tested-by: Jenkins
Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst 734d2cb4
...@@ -75,11 +75,12 @@ WidgetDefinitionPart::getStates(ControlType eType, ControlState eState, ...@@ -75,11 +75,12 @@ WidgetDefinitionPart::getStates(ControlType eType, ControlState eState,
auto const& rTabItemValue = static_cast<TabitemValue const&>(rValue); auto const& rTabItemValue = static_cast<TabitemValue const&>(rValue);
if (rTabItemValue.isFirst() && rTabItemValue.isLast()) if (rTabItemValue.isLeftAligned() && rTabItemValue.isRightAligned()
&& rTabItemValue.isFirst() && rTabItemValue.isLast())
sExtra = "first_last"; sExtra = "first_last";
else if (rTabItemValue.isFirst()) else if (rTabItemValue.isLeftAligned() || rTabItemValue.isFirst())
sExtra = "first"; sExtra = "first";
else if (rTabItemValue.isLast()) else if (rTabItemValue.isRightAligned() || rTabItemValue.isLast())
sExtra = "last"; sExtra = "last";
else else
sExtra = "middle"; sExtra = "middle";
......
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