[jbosstools-issues] [JBoss JIRA] (JBIDE-10462) br vpe:pseudo-element

Yahor Radtsevich (Commented) (JIRA) jira-events at lists.jboss.org
Wed Dec 21 13:37:09 EST 2011


    [ https://issues.jboss.org/browse/JBIDE-10462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652652#comment-12652652 ] 

Yahor Radtsevich commented on JBIDE-10462:
------------------------------------------

Thanks for the patch.

I decided to leave the styles as is, since these visible BRs are needed for Drag&Drop functionality and changing their content (it is not possible to place the text cursor in a DIV with height=0).

Anyway, I moved the styles from the Java code into EditorOverride.css file. So, now you can easily override\edit them by using the following CSS:
{code}
br[vpe\:pseudo-element='yes'] {
	display:none;
}
{code}
                
> br vpe:pseudo-element
> ---------------------
>
>                 Key: JBIDE-10462
>                 URL: https://issues.jboss.org/browse/JBIDE-10462
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Visual Page Editor core, Visual Page Editor Templates
>         Environment: win7, eclipse 3.7.0
>            Reporter: Konstantin Marmalyukov
>            Assignee: Yahor Radtsevich
>            Priority: Minor
>              Labels: pseudo-element
>             Fix For: 3.3.0.Beta1
>
>         Attachments: JBoss_br_pseudoelement_patch, screenshot-1.png
>
>
> Sometimes br pseudo-element puts into div and make there an extra space. It is visible when background color of this div is not like body color. Maybe it is necessary to mare this attribute not visible(add display:none into its style).
> Style attributes of this element are specified in VpePseudoContentCreator, line 45. 
> Or, at least, give this element css class (and wrote styles for this element to your css file)
> *Update:*
> A test HTML page:
> {code:xml|title=test.html}
> <html>
> 	<body>
> 		<p>The following div should be rendered as a line.</p>
> 		
> 		<div style="border: red 1px solid"></div>
> 	</body>
> </html>
> {code}
> Output:
> !screenshot-1.png|thumbnail!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list