DICE PACKS BUNDLE
  1. #1

    Frame Boundaries

    I'm working on a new ruleset and I'm still in the early stages of putting together the character sheet. However, I'm running into an odd display issue (see attached image). My question is, where is the blank space at the bottom of the frame coming from and how do I eliminate it.

    PrimaryChars.JPG

    Here is the code where I define the frame.

    Code:
    <?xml version="1.0" encoding="UTF-8" ?>
    
    <root>
        <windowclass name="charsheet_main">
            <margins control="0,0,0,2"/>
            
            <sheetdata>
    
                <!-- Primary characteristics container -->
                <frame_char name="primaryCharacteristicsFrame">
                    <bounds>15,0,225,235</bounds>
                </frame_char>
                <label_frametop>
                    <anchored to="primaryCharacteristicsFrame"/>
                    <static textres="char_label_primary_characteristics"/>
                </label_frametop>
                
                <!-- Headers -->
                <stringcontrol>
                    <anchored>
                        <to>primaryCharacteristicsFrame</to>
                        <position>insidetopleft</position>
                        <offset>15,25</offset>
                        <size>
                            <width>95</width>
                        </size>
                    </anchored>
                    <font>sheetlabelsmall</font>
                    <static textres="char_label_characteristic"/>
                </stringcontrol>
                <stringcontrol>
                    <anchored>
                        <to>primaryCharacteristicsFrame</to>
                        <position>insidetopleft</position>
                        <offset>115,25</offset>
                        <size>
                            <width>35</width>
                        </size>
                    </anchored>
                    <font>sheetlabelsmall</font>
                    <center/>
                    <static textres="char_label_base"/>
                </stringcontrol>
                <stringcontrol>
                    <anchored>
                        <to>primaryCharacteristicsFrame</to>
                        <position>insidetopleft</position>
                        <offset>165,25</offset>
                        <size>
                            <width>40</width>
                        </size>
                    </anchored>
                    <font>sheetlabelsmall</font>
                    <center/>
                    <static textres="char_label_current"/>
                </stringcontrol>
                
                <!-- List out the characteristics -->
                <windowlist name="primaryCharacteristics">
                    <anchored>
                        <to>primaryCharacteristicsFrame</to>
                        <position>over</position>
                        <offset>-15,-40</offset>
                    </anchored>
                    <class>charsheet_characteristic</class>
                    <datasource>.characteristics</datasource>
                    <noscroll/>
                    <script file="campaign/scripts/primaryCharacteristics.lua"/>
                    <skipempty/>
                </windowlist>
            </sheetdata>
        </windowclass>
    </root>
    Thanks in advance.
    "Everything started as somebody's daydream." -- Larry Niven

  2. #2
    It’s because you have set the windowlist top and bottom anchor to be -40 using the position=“over” and offset attributes. You probably want to specify position=“insidetop” and set the bottom anchor explicitly to -10.

    Regards,
    JPG

  3. #3
    Ah. I hadn't realized that using a position of "over" was setting both the top and bottom anchors (as well as left & right).

    Thanks.
    "Everything started as somebody's daydream." -- Larry Niven

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in