![]() |
|
Html-code of thumbs width and height - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Html-code of thumbs width and height (/thread-5504.html) |
Html-code of thumbs width and height - jackdaw - 2009-07-21 I'm using 1.2.5 [4022] and before that version the size of the thumbs were included in the html-code, like img src... width="200" height="150" etc. Now this code has dissappeared. I previously asked for this information to be included so I could get my thumbs centered horizontally and vertically inside a box. Now (testing in IE7 and 8 and Firefox) this still works, but not all of the time. Sometimes the browser somehow miscalculates or isn't fast enough and some thumbs are placed halfway beneath the box. Refreshing the browser corrects this problem sometimes. Can the code be placed back or how can I manually add this to the core? You can see an example here Html-code of thumbs width and height - acrylian - 2009-07-21 I don't remember that we changed, it is there for cropped thumbs. You surely are using the maxspace functions so maybe that was indeed forgotten. We will check that. I could not see any issue with FF3.5 and Safari 4 display. UPDATE: I have readded width and height attribute with printSizeCustomImages() so it is also used for print...MaxSpace variants. See tonight's nightly. It is not that easy to add it for "normal" uncropped images but sbillard will surely know more. Html-code of thumbs width and height - sbillard - 2009-07-21 Perhaps you can be more specific on what functions you are using. Html-code of thumbs width and height - jackdaw - 2009-07-23 I'm using printImageThumb(getAnnotatedImageTitle()) since version 1.2.1. Html-code of thumbs width and height - acrylian - 2009-07-23 Well, we changed a lot since 1.2.1 so something on that function may have changed for whatever reason. I do not remember mabye sbillard will. Html-code of thumbs width and height - jackdaw - 2009-07-23 Then please make a note for version 1.2.7? Html-code of thumbs width and height - sbillard - 2009-07-23 Check your thumb crop height/width options. If they are empty you will get no sizes. This code is identical between 1.2.1 and 1.2.5, BTW. Html-code of thumbs width and height - jackdaw - 2009-07-24 I've set my thumbsize to 150 (longest side), because I use all kinds of proportions. Please could you give me some help in temporarily manually adding that 'old' code Acrylian was trying, because as you can see now everything is 'out of the box'. after refreshing sometimes the thumbs jump back inside the box, but then others are wrong: [b]EDIT:[/b] I've removed the lines which refer to the jumpmenu from the html and now it seems as if the thumbs are shown correctly, but I'm still testing. So perhaps the jumpmenu slows down the build of the page/css. Html-code of thumbs width and height - acrylian - 2009-07-24 I was actually need readding old code but new. This is not an easy fix. We need to investigate that and will do after 1.2.6 is released. Html-code of thumbs width and height - jackdaw - 2010-01-25 I'm reopening this topic, because it still gives me headaches... I'm using printImageThumb(getAnnotatedImageTitle()) to show uncropped thumbs which I want to align in the middle/centre of a square box. In an older version of ZP the actual width and height of the thumb were printed in the html-code and by using the right css I was able to achieve what I wanted. Somehow, the absence of these values makes it impossible to get it right in all browsers. Strangely enough, for instance, in Firefox on Linux it works ok, but the exact same version of Firefox on Windows not! The same for Chrome. IE 6 en 7 not, IE 8 is ok. I know I can make it work for all browsers, but than I need those width and height values. How can I get them back??? Html-code of thumbs width and height - acrylian - 2010-01-25 It does print the width and height if the thumbs are cropped only it seems. Best you open a ticket so that sbillard sees this too and we can investigate that. The width or height will always be the value of the size you set, depending on the the "suboption" you set. |