On 11/28/2010 07:54 PM, Marius Dumitru Florea wrote:
Hi Sergiu,
I've fixed this issue locally by making the selector more specific:
#body.main (instead of body.main)
and
* html #body.main (instead of * html body.main)
I think this is better because all the rules in RichTextArea.css are
suppose to be overwrites and putting !important everywhere is an
overhead. I hope you agree.
Isn't RichTextArea.css supposed to be independent of XWiki? #body is
XWiki specific, so it won't always work outside XWiki.
Actually, the independence is already sacrificed by the use of the color
theme.
I looked around when determining what's the best thing to do, and I saw
that !important was already used in the same ruleset for setting the
background and text color.
Anyway, I'm not that familiar with the WYSIWYG, so I'll leave the
decision to you, feel free to change it if you consider it's better.
On 11/28/2010 03:58 AM, sdumitriu (SVN) wrote:
> Author: sdumitriu
> Date: 2010-11-28 02:58:54 +0100 (Sun, 28 Nov 2010)
> New Revision: 33164
>
> Modified:
>
platform/web/trunk/xwiki-gwt-wysiwyg-client/src/main/resources/org/xwiki/gwt/wysiwyg/public/stylesheets/RichTextArea.css
> Log:
> XWIKI-5736: Horizontal scrollbar always visible in the WYSIWYG editor on small
screens
> Fixed.
>
> Modified:
platform/web/trunk/xwiki-gwt-wysiwyg-client/src/main/resources/org/xwiki/gwt/wysiwyg/public/stylesheets/RichTextArea.css
> ===================================================================
> ---
platform/web/trunk/xwiki-gwt-wysiwyg-client/src/main/resources/org/xwiki/gwt/wysiwyg/public/stylesheets/RichTextArea.css 2010-11-28
01:47:54 UTC (rev 33163)
> +++
platform/web/trunk/xwiki-gwt-wysiwyg-client/src/main/resources/org/xwiki/gwt/wysiwyg/public/stylesheets/RichTextArea.css 2010-11-28
01:58:54 UTC (rev 33164)
> @@ -32,8 +32,8 @@
> float: left;
> height: auto;
> margin: 0;
> - min-height: 100%;
> - min-width: 100%;
> + min-height: 100% !important;
> + min-width: 100% !important;
> overflow: visible;
> padding: 0;
> position: static;
--
Sergiu Dumitriu
http://purl.org/net/sergiu/