Slides from EclpseCon 2011 [message #925463] |
Thu, 27 September 2012 14:46  |
Eclipse User |
|
|
|
Hi,
is it possible to get the slides that have been presented at EclipseCon
2011 about Vex? It was not possible to visit the conference
Also, I have seen on the New and Noteworthy page that Vex has Image
support. How does this support look like? E.g. for an XHTML doc, is it
enough to add a img element with src-attribute that contains a relative
link to the image?
Thanks
Kris
|
|
|
|
Re: Slides from EclpseCon 2011 [message #932025 is a reply to message #926211] |
Wed, 03 October 2012 15:05   |
Eclipse User |
|
|
|
Hi Holger,
thanks for the info on the examples from the talk. They helped me to
understand the vex editor a little better.
What I am still struggling with is the display of images. The inline
display (img height = line height) is OK, but the display of images that
shall have their original size - I don't get it to work.
Is there an xhtml example that shows how to display images non inline,
e.g. what you can see here:
http://wiki.eclipse.org/Vex/NewAndNoteworthy#1.0.0_M3_.282010-11-08.29
(the big image)?
In Bug 298912 the following is mentioned
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=298912#c30):
"In block elements, Vex tries to show the image in its original size,
but scales it to the width of the containing element, if the image is
bigger."
I am not sure whether my tests have properly set a "block element" in
xhtml strict. E.g. what I tried is:
<?xml version='1.0'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
</head>
<body>
<p>Text Text Text</p>
<div>
<img src="eclipse-vex-page.png"></img>
</div>
<p/>
</body>
</html>
As style I am using the "XHTML plain" as part of vex editor. This css
has the definition:
div {
display: block;
}
So I think this is a proper interpretation for a block element in xhtml
with the used css. However the image displayed is limited to the line
height although it is far bigger in height an width as displayed.
What I also tried is giving the img tag in the xhtml in the style
attribute the "display: block" directly; unfortunately with no effect...
To cut the long story short - what must one do to display images in
xhtml as block element having its original size?
Thanks
Kris
Am 28.09.12 14:15, schrieb Holger Voormann:
> Hi Kris,
>
> Samples and snippets of Florian's Vex EclipseCon Europe 2011 talk (which
> are more important than the slides) are at GitHub: github.com/ftl/ece2011
>
> Yes, in XHTML the path of the image to show are specified by the src
> attribute of the img element. This is done via CSS:
> img {
> background-image: attr(src);
> height: attr(height);
> width: attr(width);
> }
> In CSS you could either directly specify the path of the (background)
> image (same image for all matching elements) or delegate to an attribute
> value (attr(...)).
|
|
|
|
Re: Slides from EclpseCon 2011 [message #946971 is a reply to message #934012] |
Tue, 16 October 2012 13:37  |
Eclipse User |
|
|
|
Hi Holger,
sorry for the delay in my response - the last days have been very very
busy.
I got it working now with the following:
<img class="blockstyle" src="img-big.jpg"/>
and CSS:
..blockstyle{
display: block;
text-align: center;
}
That's why I am unsure about the bug and probably everything works as
expected. I mean - do children of a <div> with style "display:block"
have to inherit this layout behaviour. If yes, then I would open a bug,
if not, I think it's a feature.
Thanks & Regards
Kris
Am 05.10.12 17:06, schrieb Holger Voormann:
> Hi Kris,
>
> The image belongs to the img element which is an inline (and not a
> block) element. It seems, the image support for inline elements is
> incomplete.
>
> Could you please open a bug:
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Mylyn%20Docs%20Vex
>
> Thx,
> Holger
|
|
|
Powered by
FUDForum. Page generated in 0.03894 seconds