You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto rich_text = cocos2d::ui::RichText::initWithXML(
"This is a tiny image of a hand: <img src='combined_hand.png' width='36' height='36' type='1'/>");
... add to parent etc
then click on the image, and the OS will try to open the URL, but since it's blank, it defaults to the root filesystem path I think.
On my fork I've just added an 'if URL length' check in this one spot, but I haven't tried much more. Seems like there's a few spots the ListenerComponent is bound to the image element but I haven't ran into it yet.
The text was updated successfully, but these errors were encountered:
tankorsmash
changed the title
On Windows, setting an image element in RichText without a URL causes File Explorer to open
On Windows, clicking on an image element in RichText without a URL causes File Explorer to open
Jun 26, 2019
cocos2d-x/cocos/ui/UIRichText.cpp
Line 1762 in 2ac747c
then click on the image, and the OS will try to open the URL, but since it's blank, it defaults to the root filesystem path I think.
On my fork I've just added an 'if URL length' check in this one spot, but I haven't tried much more. Seems like there's a few spots the ListenerComponent is bound to the image element but I haven't ran into it yet.
The text was updated successfully, but these errors were encountered: