2006-12-06, 02:36
Yeah - the grouplist sets the viewport around the controls (ostensibly for when the controls are scrolling).
The reason is that controls are currently resized (in width) to the size of the grouplist in the case of a vertical list (their heights are probably resized in the case of a horizontal grouplist, though I'm not 100% sure), and their posx and posy are set so that they form a list. Obviously the issue here is the posx and width (in particular) being forced.
The only reason that this occurs is because settingscategory.xml requires it for many skins, as the various control types there are not sized correctly by default.
I could remove this constraint (allowing the <posx> and <width> to be left alone, and taken offset from the grouplist) but this will kill backward compatibility, and would also force you to place the controls within the list itself (which makes sense anyway).
My proposal is as follows:
1. If skin version < 2.1, do it as it is done now.
2. Else, leave <posx> and <width> untouched.
Those skins that have already specified version 2.1 will need to be updated to suit.
Does this sound ok?
Cheers,
Jonathan
The reason is that controls are currently resized (in width) to the size of the grouplist in the case of a vertical list (their heights are probably resized in the case of a horizontal grouplist, though I'm not 100% sure), and their posx and posy are set so that they form a list. Obviously the issue here is the posx and width (in particular) being forced.
The only reason that this occurs is because settingscategory.xml requires it for many skins, as the various control types there are not sized correctly by default.
I could remove this constraint (allowing the <posx> and <width> to be left alone, and taken offset from the grouplist) but this will kill backward compatibility, and would also force you to place the controls within the list itself (which makes sense anyway).
My proposal is as follows:
1. If skin version < 2.1, do it as it is done now.
2. Else, leave <posx> and <width> untouched.
Those skins that have already specified version 2.1 will need to be updated to suit.
Does this sound ok?
Cheers,
Jonathan