On Wed, May 04, 2005 at 11:08:10AM +0200, Hussein Shafie wrote: > 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).
The problem that my authors have described is that their images are being cropped (by the XXE interface) when they are larger than the width of the page; they only want to scale their images in order to fit them within the page. If the page width is large enough, they want these images displayed at their intrinsic size. I have described to them the use of the width attribute, but this (with scalefit="1") causes the images to always be scaled to exactly the width of the XXE document display, which often causes images to be enlarged, with significant quality loss. I think the clipping of images in XXE is a poor feature, and would like to request a feature enhancement that a default viewport be set for images with a value either equal to the intrinsic size of the image (which might force the document to be scrolled in order to see the whole image) or equal to the scaled height and width of an image in order to fit it in the width of the document display. > 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 I'm pretty sure that's not web-accessible. ;-) > 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. Interestingly, if this documentation *were* accurate it would meet my request for enhancement above. Also, I thought that I remembered a past version of XXE where images did get scaled if they were too wide, by default. That's what I want. Take care, John L. Clark -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20050504/c932cbd7/attachment.sig

