Lightroom SDK 4: nothing can accompany scrolled_view in tabbed container (when the scrolled_view contains input components).

  • 3
  • Problem
  • Updated 4 years ago
In modal dialog, scrolled_view must not be accompanied by any other components in tabbed container - see comments in code below:

-- vf is a view-factory
LrFunctionContext.postAsyncTaskWithContext( "tt", function( context )
local props = LrBinding.makePropertyTable( context )
props.tv = 0
local vi = {
vf:tab_view {
vf:tab_view_item {
identifier = "t1",
title = "T1",
vf:static_text {
title = "temp1"
},
},
vf:tab_view_item {
identifier = "t2",
title = "T2",
vf:scrolled_view {
vf:slider { -- or any other input component.
bind_to_object = props,
value = LrView.bind( 'tv' ),
},
},
-- with this here, Lr crashes after adjusting slider and then switching tabs - comment it out, and all is well:
vf:static_text {
title = "this cant be here",
},
},
}
}
LrDialogs.presentModalDialog {
title = "test",
contents = vf:view( vi )
}
end )

Happens every time...

R
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes

Posted 5 years ago

  • 3
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
Not fixed in Lr5b.

Adobe - please fix this before releasing Lr5.0 - thanks.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
Problem still exists in Lr5.6.