I am attempting to hide more of the default buttons on phones (“small-mobile”), but the following code doesn’t appear to be doing anything to the buttons:
Per your recommendation I tried using those instead, but it made no difference.
The “small-mobile” is what I am successfully using in other places in my code (when adding new buttons); when I change those working instances to just “mobile” they are no longer hiding as they should.
Oddly enough, other attributes (ex. Title) update just fine with UI.updateElement—just not the “hidden” property.
As for the bug-fix for the existing toolButtons, we’ve added the issue to our backlog to be worked on in the future. We don’t have a timeline for when it will be fixed but if it does get fixed we’ll let you know when it’s available in an experimental build to test out and the estimated official release date. If you have a desired timeline for having this issue fixed please let us know and we’ll do our best to work with you on how this can fit into the release schedule.
Best Regards,
Kevin Kim
Web Development Support Engineer
PDFTron Systems, Inc.