<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: addTableCommandInput() in Python last 3 rows don't display if table needs to scroll in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/addtablecommandinput-in-python-last-3-rows-don-t-display-if/m-p/11367801#M5788</link>
    <description>&lt;P&gt;I tried to reproduce it, and it seems to be working OK for me. I'm using Windows. Are you on Mac? Even if you are, I don't know if that's the problem, but it would be an obvious difference.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 21:56:07 GMT</pubDate>
    <dc:creator>BrianEkins</dc:creator>
    <dc:date>2022-08-18T21:56:07Z</dc:date>
    <item>
      <title>addTableCommandInput() in Python last 3 rows don't display if table needs to scroll</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/addtablecommandinput-in-python-last-3-rows-don-t-display-if/m-p/11277925#M5786</link>
      <description>&lt;P&gt;I'm trying a table rather than a drop down list for simulating a File: menu. The last 3 rows do not display properly, even if I change the order of the rows. It seems that I always get a vertical scrollbar on the extreme right side of the table and not text showing.&lt;BR /&gt;&lt;BR /&gt;I have some clues that suggest that this might be a bug in the API library. The only thing that is different about the last 3 rows is that they are not visible when the UI is created. They don't fit the space and you have to move the scroll bar to see them. When I move the scroll bar I see that all the rows that are not initially visible do not draw properly. It is almost as if the logic that triggers a scroll bar on the text is getting triggered by the size logic of the surrounding table.&amp;nbsp; If I eliminate scrolling by setting the number of rows (min and max) then they do show properly. See the screen capture at end of this post.&amp;nbsp; (I used to fix a lot of bugs back when I was working.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my utility function to add rows to a table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;        self.fileMenuTable: TableCommandInput = fileTabInputs.addTableCommandInput(
            'fileMenuTable', 'File', 2, "1:10")
        self.fileMenuTable.isFullWidth = True
 
        row: int = 0
        row = self.addFileMenuItem('fileNewMenuItem', "New", 'new', row)
        row = self.addFileMenuItem('fileOpenMenuItem', "Open", 'open', row)
        row = self.addFileMenuItem('fileCloseMenuItem', "Close", 'close', row)
        row = self.addFileMenuItem('fileSaveMenuItem', "Save", 'save', row)
        row = self.addFileMenuItem('fileSaveAsMenuItem', "Savea", 'saveas', row)
        row = self.addFileMenuItem('fileExportCSVMenuItem', "Export", 'exportcsv', row)
        row = self.addFileMenuItem(
            'filePublishMenuItem', "Params", 'publishparams', row)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Here is the code that makes the row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    def addFileMenuItem(self, id: str, prompt: str, iconName: str, row: int) -&amp;gt;int:

        fileTabInputs = self.getInputsForTab("file_tab")
        iconPath: str = '.' + os.sep + "resources" + os.sep + "buttons" + os.sep + iconName
        
        menuItem: BoolValueCommandInput = fileTabInputs.addBoolValueInput(
            id, '', False, iconPath, True)
        self.fileMenuTable.addCommandInput(menuItem, row, 0)

        menuItemText: TextBoxCommandInput = fileTabInputs.addTextBoxCommandInput(
            id + "Text", "", "&amp;lt;b&amp;gt;" + prompt + "&amp;lt;/b&amp;gt;", 1, True)
        self.fileMenuTable.addCommandInput(menuItemText, row, 1)
        row += 1
        
        return row&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The last three (does not seem to matter which) have no text, just a peculiar scroll bar on the right side.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tableissue.png" style="width: 300px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1087869i71D373EA518D2775/image-size/small?v=v2&amp;amp;px=200" role="button" title="tableissue.png" alt="tableissue.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SO when I add this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;self.fileMenuTable.maximumVisibleRows = 7
self.fileMenuTable.minimumVisibleRows = 7&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;the issue is no longer evident though I don't have access to scrolling, but I can live with that.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="tableissue2.png" style="width: 300px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1088171iF08FE5854A010F7D/image-size/small?v=v2&amp;amp;px=200" role="button" title="tableissue2.png" alt="tableissue2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 22:04:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/addtablecommandinput-in-python-last-3-rows-don-t-display-if/m-p/11277925#M5786</guid>
      <dc:creator>tim.collins29V9X</dc:creator>
      <dc:date>2022-07-06T22:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: addTableCommandInput() in Python last 3 rows don't display if table needs to scroll</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/addtablecommandinput-in-python-last-3-rows-don-t-display-if/m-p/11343792#M5787</link>
      <description>&lt;P&gt;I believe this is a bug in case anyone at Autodesk ever looks for them in the forums.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2022 11:55:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/addtablecommandinput-in-python-last-3-rows-don-t-display-if/m-p/11343792#M5787</guid>
      <dc:creator>tim.collins29V9X</dc:creator>
      <dc:date>2022-08-06T11:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: addTableCommandInput() in Python last 3 rows don't display if table needs to scroll</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/addtablecommandinput-in-python-last-3-rows-don-t-display-if/m-p/11367801#M5788</link>
      <description>&lt;P&gt;I tried to reproduce it, and it seems to be working OK for me. I'm using Windows. Are you on Mac? Even if you are, I don't know if that's the problem, but it would be an obvious difference.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:56:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/addtablecommandinput-in-python-last-3-rows-don-t-display-if/m-p/11367801#M5788</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2022-08-18T21:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: addTableCommandInput() in Python last 3 rows don't display if table needs to scroll</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/addtablecommandinput-in-python-last-3-rows-don-t-display-if/m-p/11409555#M5789</link>
      <description>&lt;P&gt;Hi Brian,&amp;nbsp;&lt;BR /&gt;Apologies for the delay. I am on and off this project and just got back.&lt;BR /&gt;&lt;BR /&gt;I am running on Windows.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It does make sense that this would be a platform-specific API related to computing which of the UI widgets are visible.&amp;nbsp; Someone ought to fix it eventually assuming no other high priority items. I'm certainly not blocked by it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Tim&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 18:45:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/addtablecommandinput-in-python-last-3-rows-don-t-display-if/m-p/11409555#M5789</guid>
      <dc:creator>tim.collins29V9X</dc:creator>
      <dc:date>2022-09-08T18:45:35Z</dc:date>
    </item>
  </channel>
</rss>

