Please post your .gwt.xml file & your html file. On a side note, I really do urge you to use OOPHM & Firebug - it'll help you track down this bug 100x faster because you'll be able to see the CSS rules that are being applied to the element & which are override each other. That'll let you see if your rules are even being included & if they, if they're being overriden by another rule.
On a side note, try adding !important to your styles. On Fri, Apr 17, 2009 at 12:15 AM, hezjing <[email protected]> wrote: > Thanks, Vitali. > Back to the problem, theoretically it should works by modifying the CSS as > described in the DecoratorPanel Javadoc, right? > Did I miss anything here? > > On Fri, Apr 17, 2009 at 12:05 PM, Vitali Lovich <[email protected]> wrote: >> >> I would recommend trunk & OOPHM mode which lets you run in hosted mode >> with native firefox. >> >> If that's not an option, you can try: >> >> public static native Element[] getElementsByClassName(String name) /*--{ >> >> if (document.getElementsByClassName == undefined) { >> document.getElementsByClassName = function(className) >> { >> var hasClassName = new RegExp("(?:^|\\s)" + className + >> "(?:$|\\s)"); >> var allElements = document.getElementsByTagName("*"); >> var results = []; >> >> var element; >> for (var i = 0; (element = allElements[i]) != null; i++) { >> var elementClass = element.className; >> if (elementClass && elementClass.indexOf(className) >> != -1 && >> hasClassName.test(elementClass)) >> results.push(element); >> } >> >> return results; >> } >> } >> return document.getElementsByClassName(name); >> >> }--*/; >> >> Element [] topLeft = getElementsByClassName("topLeft"); >> assert topLeft != null; >> >> for (Element tl : topLeft) { >> System.out.println("Found top left with background " + >> DOM.getStyleAttribute(tl, "background")); >> } >> >> rinse & repeat for the remaining corners. Code not tested (just >> grabbed the native javascript from the web) so you're on your own if >> it doesn't work (at that point try gwtquery). >> >> On Thu, Apr 16, 2009 at 11:19 PM, hezjing <[email protected]> wrote: >> > >> > Hi Vitali >> > On Fri, Apr 17, 2009 at 11:05 AM, Vitali Lovich <[email protected]> >> > wrote: >> >> >> >> Have you used something like firebug to verify that the CSS on those >> >> elements is indeed correct? >> > >> > I'm not using Firefox and Firebug. >> > I'm testing this in hosted mode, is there an alternative way to verify >> > if the CSS is correct? >> > >> > -- >> > >> > Hez >> > >> > > >> >> > > > > -- > > Hez > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
