John L. Clark wrote: > With the DocBook configuration shipped with the XMLmind XML Editor > (XXE), images (referenced from within imagedata elements) that are wider > than the width of the document view are clipped on the right and the > left. It seems that the red selection rectangle indicates the boundary > of the viewport (as described in "DocBook: The Definitive Guide" and in > the "Support of images in DocBook" document shipped with XXE). Without > any view-adjusting attributes, it further seems that the width of the > viewport (that is, the width of the selector when an imagedata element > is selected) is equal to the width of the document view. As such, I > thought that I could simply set the scalefit attribute to "1" to cause > the image to be scaled (down) to fit within this "default" viewport. > However, setting this attribute (by itself, in a case such as this) does > nothing - the image is still clipped. What am I missing here?
There is no default viewport and without a viewport, scalefit has no effect. You can achieve what you want simply by setting attribute "width" to "100%" (because in such case scalefit=1 is implicit). > Also, while I'm asking, what are the defaults for the various > view-generating properties that XXE imposes? "DocBook: The Definitive > Guide" says, at several points, that "an implementation is free to > choose defaults"; I'm simply curious what defaults XXE chooses for the > various properties (depth, width, one when only the other is defined, > etc.). The DocBook CSS style sheet uses an image gadget which derives from (more generic image gadget) image-viewport. Image-viewport defaults are found in http://lupo/xmleditor/_distrib/docs/csssupport/ch05s22.html Note that, in this documentation, the default values of parameters viewport-width, viewport-height, content-width and content-height are not accurate. We'll change this description to: "None." in next release.

