Skip to content

Commit

Permalink
Obsel skins: handle visible style property
Browse files Browse the repository at this point in the history
  • Loading branch information
oaubert committed Feb 23, 2012
1 parent cfb99ab commit 4db531c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/com/ithaca/timeline/skins/IconSkin.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
{
icon.toolTip = obsel.props[hostComponent.getStyle("tooltipProp")];
}
if (hostComponent.getStyle("visible") == 'false')
{
icon.visible = false;
}
else
icon.visible = true;
}
]]>
Expand Down
8 changes: 8 additions & 0 deletions src/com/ithaca/timeline/skins/IconTextSkin.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@
{
icon.toolTip = obsel.props[hostComponent.getStyle("tooltipProp")];
}
if (hostComponent.getStyle("visible") == 'false')
{
icon.visible = false;
}
else
icon.visible = true;
}
protected function onTextChange(event: Event): void
Expand Down
8 changes: 8 additions & 0 deletions src/com/ithaca/timeline/skins/MarkerSkin.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@
{
icon.toolTip = obsel.props[hostComponent.getStyle("tooltipProp")];
}
if (hostComponent.getStyle("visible") == 'false')
{
icon.visible = false;
}
else
icon.visible = true;
}
protected function onToolTipShow(event: ToolTipEvent): void
Expand Down

0 comments on commit 4db531c

Please sign in to comment.