Preset browser resize?
-
I just noticed that the preset browser does not resize with the GUi resize.
I suspect there is no way to make that happen ? -
@lalalandsynth Of course it does, you might have a bug somewhere... restart Hise maybe...
-
Not when I am using this to display the presetbrowser. Tried with another plugin that does not use scripting for the preset browser and yes that works .
// Preset open; const var PresetDisplay = Content.getComponent("PresetDisplay"); PresetDisplay.setPaintRoutine(function(g) { g.fillAll(0xFF000000); g.setColour(0xFFb6a187); g.drawAlignedText(this.data.text, [0, 0, this.getWidth(), this.getHeight()], "centred"); }); PresetDisplay.startTimer(200); PresetDisplay.setTimerCallback(function() { var text = Engine.getCurrentUserPresetName(); if(text == "") text = "Init"; if(this.data.text != text) { this.data.text = text; this.repaint(); } }); const var presetBrowserData = { "Type": "PresetBrowser", "Title": " ", "FontSize": 16, "ShowFolderButton": false, "NumColumns": 2, "ColourData": { "bgColour": "0xFF282522", "itemColour1": "00B6A187", "itemColour3": "00B6A187" } }; PresetDisplay.setPopupData(presetBrowserData, [PresetDisplay.getWidth()/2, 30, 600, 320]);; PresetDisplay.set("allowCallbacks", "Context Menu");