View Single Post
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,502

Old March 28th, 2018, 08:15 PM
Commenting out those lines fixes the alignment issue. Unfortunately, it comes back even when I follow your advice to size to fit at that location.

Code:
<position><![CDATA[
  ~our height is the height of the tallest portal
  height = portal[name].height
  doneif (issizing <> 0)

  ~position the name to the left and let it take up a third of the space.
  portal[name].width = width / 3
  portal[value].width = width / 9
  portal[special].width = width - portal[name].width - portal[value].width - 10

  ~ Resize fonts to make the values fit
  perform portal[name].sizetofit[20]
  perform portal[special].sizetofit[16]
  
  portal[name].left = 0
  
  ~position the value to the right of that, and a ninth of the space
  portal[value].left = portal[name].right + 5
  
  ~ Let the Specialties take up the rest of the space
  portal[special].left = portal[value].right + 5
  
  ~center all portals vertically
  perform portal[name].centervert
  perform portal[value].centervert
  perform portal[special].centervert
  ]]></position>
I may just have to select smaller font values as a standard and not use sizetofit...
Duggan is offline   #3 Reply With Quote