reprise / reprise-framework

CSS based AS3 GUI framework
MIT License
21 stars 2 forks source link

Tooltip bug #1

Open krooked opened 14 years ago

krooked commented 14 years ago

Tooltip causes exception while rollover.

Exception: Exception fault: ArgumentError: Error #2015: Ung�ltiges BitmapData. at flash.display::BitmapData() at reprise.ui.renderers::DefaultBackgroundRenderer/bitmapLoader_complete()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/ui/renderers/DefaultBackgroundRenderer.as:377] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at reprise.external::AbstractResource/notifyComplete()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/external/AbstractResource.as:317] at reprise.external::AbstractResource/onData()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/external/AbstractResource.as:264] at reprise.external::BitmapResource/setContent()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/external/BitmapResource.as:95] at reprise.external::BitmapResourceCacheItem/applyDataToTarget()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/external/BitmapResourceCacheItem.as:149] at reprise.external::BitmapResourceCacheItem/addTarget()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/external/BitmapResourceCacheItem.as:73] at reprise.external::BitmapResourceCache/loadBitmapResource()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/external/BitmapResourceCache.as:94] at reprise.external::BitmapResource/doLoad()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/external/BitmapResource.as:143] at reprise.external::AbstractResource/execute()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/external/AbstractResource.as:72] at reprise.external::BitmapResource/execute()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/external/BitmapResource.as:45] at reprise.ui.renderers::DefaultBackgroundRenderer/loadBackgroundImage()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/ui/renderers/DefaultBackgroundRenderer.as:208] at reprise.ui.renderers::DefaultBackgroundRenderer/draw()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/ui/renderers/DefaultBackgroundRenderer.as:104] at reprise.ui::UIComponent/applyBackgroundAndBorders()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/ui/UIComponent.as:2435] at reprise.ui::UIComponent/validateAfterChildren()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/ui/UIComponent.as:1639] at reprise.ui.renderers::AbstractTooltip/validateAfterChildren()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/ui/renderers/AbstractTooltip.as:239] at reprise.ui::UIObject/validateElement()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/ui/UIObject.as:882] at reprise.ui::UIComponent/validateElement()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/ui/UIComponent.as:1452] at reprise.ui.renderers::AbstractTooltip/setMousedComponent()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/ui/renderers/AbstractTooltip.as:128] at reprise.core::TooltipManager/showTooltipWithDataAndRendererForElement()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/core/TooltipManager.as:192] at reprise.core::TooltipManager/updateTooltipForElement()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace/reprise test/libs/reprise/reprise/core/TooltipManager.as:142] at reprise.core::TooltipManager/rootView_mouseOver()[/Users/andreniet/Documents/01_Work/andreniet.de/dev/wooga_workspace__/reprise test/libs/reprise/reprise/core/TooltipManager.as:69]

krooked commented 14 years ago

CSS:

Tooltip

{ background-image: url(./img/tooltip_background.png); background-scale9: stretch 4px 7px 17px 26px; height: 49px; padding: 0 12px; margin-top: -65px; margin-left: -17px; display: inline; }

Tooltip Label

{ color: #ffffff; word-wrap: wrap; multiline: true; }

krooked commented 14 years ago

The bug is not only related to tooltips but a general scale 9 issue. Affects as well LabelButtons, probably all UIComponents.