FND Take a look at http://cadfael.tiddlyspot.com/ for a test case.
The tiddler ImagePopupPlugin shows the example of setStyleSheet not working. If it was working the ImagePopupPluginTest would show three thumbnail sized images. Instead it shows three full sized images which indicate to me that the style ippDefaultThumbSize is not being applied correctly. Changing the line var nameOfThumbSizeClass = "ippDefaultThumbSize"; to var nameOfThumbSizeClass = "ippThumbSize"; ie to apply the class defined in the StyleSheet does work. Thanks Steve Wharton On Feb 20, 5:24 pm, FND <[email protected]> wrote: > At first glance, your code seems alright to me[1] - can you provide a > test case[2] so we can analyze it? > > > Where does the call setStylesheet go relative to the plugin > > and how do I reference the style within the plugin? > > I'm not sure I understand the issue here. > Since setStylesheet merely adds CSS definitions, that's largely > independent of any JavaScript code - you just have to make sure that > your elements match the respective selectors (e.g. by adding a class). > > -- F. > > [1] cf.http://www.tiddlywiki.org/wiki/Dev:Plugin_Styles > [2]http://www.tiddlywiki.org/wiki/Troubleshooting --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWikiDev?hl=en -~----------~----~----~----~------~----~------~--~---
