Hey David,

2009/2/2 David Galicia <[email protected]>:
> When I add an ExtJs stylesheet, a bit of my page isn't cosmetically rendered
> properly (wrong font size, etc). I have to explicitly give an element a
> value in another external stylesheet (which builds off of firefox's default
> stylesheet) to fix it. Is this normal?
>
> Notes: I'm using WWidget::setStyleClass() to style my widgets and using
> WApplication::useStyleSheet() at the end of my application construction for
> loading the ExtJs stylesheet.

I am not sure I understand: if you load an Ext widget, then
automatically, Wt will load the default ExtJS stylesheet
(resources/css/ext-all.css). What other ExtJS stylesheet are you
referring at ?

Nevertheless, it is true that the ExtJS 'reset' stylesheet is very
invasive and will reset many default styles. It seems custom to do
that since the default styles differ from browser to browser and it
makes pixel accurate designs impossible otherwise (ExtJS needs this
for many of their polished looks).

There is nothing you can do about it except for what you already are
doing: redefine them for your own widgets (preferably not in the
global scope since that simply negates ExtJS's efforts, but with your
own classes).

Regards,
koen

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to