We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I add a display.newLine in a widget.scrollView I get a warning that says: "line.width is deprecated. Use line.strokeWidth".
The text was updated successfully, but these errors were encountered:
Example code:
local widget = require("widget") local testScrollView = widget.newScrollView( { left = 0, top = 11, width = 100, height = 200 } ) local line = display.newLine(11, 11, 111, 111) testScrollView:insert(line)
Warning occures in widgetLibrary/widget_scrollview.lua line 371
local leftPadding = self._collectorGroup[ 1 ].x - ( self._collectorGroup[ 1 ].width * 0.5 )
I think it should use contentWidth instead, because padding is calculated wrong for scaled display objects
Sorry, something went wrong.
No branches or pull requests
When I add a display.newLine in a widget.scrollView I get a warning that says: "line.width is deprecated. Use line.strokeWidth".
The text was updated successfully, but these errors were encountered: