Quantcast
WoWInterface - View Single Post - FauxScrollFrame in pure LUA problem
View Single Post
12-05-20, 07:45 AM   #7
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 117
My scroll frame works fine, but I have another question: apparently, FauxScrollFrame_Update has an option to not always show scroll buttons.
I'm unable to make option alwaysShowScrollBar work: scroll buttons are always visible, even if the scroll frame contains one line.

Code:
 -- Function to handle the update of manually calculated
    scrollframes.  Used mostly for listings with an indeterminate
    number of items
 function FauxScrollFrame_Update(frame, numItems, numToDisplay,
    valueStep, button, smallWidth, bigWidth, highlightFrame,
    smallHighlightWidth, bigHighlightWidth, alwaysShowScrollBar )
In https://github.com/tomrus88/Blizzard...goriesList.lua, I see:
Blizzard_AuctionHouseCategoriesList.lua
Code:
FauxScrollFrame_Update(categoriesList.ScrollFrame, #EXPANDED_FILTERS, NUM_FILTERS_TO_DISPLAY, BROWSE_FILTER_HEIGHT, nil, nil, nil, nil, nil, nil, alwaysShowScrollBar)
  Reply With Quote