![]() |
|
TextObject's width and height properties - 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: TextObject's width and height properties (/thread-9296.html) |
TextObject's width and height properties - tunafish - 2011-11-21 Hello ZenPhoto team! I am being more and more impressed by ZP! I see ZP is not able to pick up the height (and width) from the iFrame's properties and get's them from the image size option, printDefaultSizedImage() in my case 900 x 600 px or 900px on the longest side Quote:Since text files have no natural height and width, we set them based on the image size option. This happens after the call PersistentObject(). The rest of the code there sets up the default title. Quote:The code of the object instantiation function is mostly required. Plugin "images" follow the lead of videos in that if there is a real image file with the same name save the suffix, it will be considered the thumb image of the object. This image is fetched by the call on checkObjectsThumb(). There is also code in the getThumb() method to deal with this property. Cheers TextObject's width and height properties - acrylian - 2011-11-21 No need to post the same topic twice... Quote:I actually thought that the plugin would (or could?) use the my_video.jpg I have next to my my_video.txt file in the albums folder. As you said a text object which can be any type of text has no dimension. Using it with Youtube & Co videos is a trick/workaround. The span is of course set via CSS and naturally not all theme may have something for text objects. Youtube & Co provide an embed code with predefined sizes you manually should adjust to fit your theme layout. |