Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CS6 ScriptUI Scrollbar issues

New Here ,
Nov 16, 2012 Nov 16, 2012

We're working on building a palette with a scrollbar. However, we're running into an issue with the display in CS6. We've gotten it to display correctly on Windows and Macs in previous versions of Bridge, but CS6 seems to have a bug even after the most recent update (version 5.0.1.21).

The scroll bar appears as below.

Screen Shot 2012-11-16 at 9.11.08 AM.png

When we changed the dimensions of the scrollbar, we found that not only was the scrollbar distorted but it's actually oriented horizontally to control the vertical position.

Screen Shot 2012-11-16 at 9.23.27 AM.png

We've tried nesting the scrollbar in a group or giving it a separate panel, as well as giving those panels and groups a specific column orientation, but nearly all of those results give us something like the following:

Screen Shot 2012-11-16 at 9.48.38 AM.png

The following code was our last iteration that gives the above output:

#target bridge

if (BridgeTalk.appName == 'bridge')

    // dimension and font variables

   var fF = ['fill', 'fill'];

   var fT = ['fill', 'top'];

   var lblSize = [60, 15];

   var lblBounds = [5, 10, 60, 27];

   var etFont = ScriptUI.newFont ("Arial", 11);

   var etBounds = [10, 10, 200, 27];

 

    // Create the TabbedPalette object, of type "script"

    var tbPalette = new TabbedPalette( app.document, "CSU Metadata", "CSU_Metadata", "script", "right", "bottom");

    // Create a ScriptUI panel to be displayed as the tab contents.

    var panel = tbPalette.content.add('panel', "x:0, y:0, width:300, height:500", "");

    var tbPanelSbGrp = tbPalette.content.add('panel', "x:302, y:0, width:200, height:500", 0, 0, 20, 500);

    tbPanelSbGrp.orientation = 'column';

    var tbPanelSb = panel.add('scrollbar', "x:302, y:0, width:40, height:500");

    tbPanelSb.stepdelta = 10;

    tbPanelSb.jumpdelta = 40;

    tbPanelSb.onChanging = function() {

     var scrollVal = Math.round(this.value);

    this.value = scrollVal

}

Has anyone found a work around for this problem? I've seen the same problem mentioned elsewhere but without a solution:

http://www.ps-scripts.com/bb/viewtopic.php?f=9&t=4915

http://feedback.photoshop.com/photoshop_family/topics/extendscript_ui_not_drawing_correctly_in_bridg...

TOPICS
Scripting
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 16, 2012 Nov 16, 2012

Sorry no, and even though reports have been given to Adobe no-one from the Bridge team has acknowledged these problems.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 05, 2013 Jul 05, 2013

I have given up on this.  More than a year has passed and the Bridge ScriptUI is still non-functional.  I am looking for another solution for my workflow so I can ditch Bridge/Photoshop and find a vendor that supports their products.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 09, 2013 Nov 09, 2013
LATEST

STILL NOT WORKING.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines