titanium-sdk
                                
                                 titanium-sdk copied to clipboard
                                
                                    titanium-sdk copied to clipboard
                            
                            
                            
                        feat(android): adjust left padding for ScrollableView
Adds leftAdjust (int) to the ScrollableView padding settings. With this you can move the first item to the left corner again but still show the next item.
Update
I've changed the parameter to be leftAdjust and you can set a custom number. If you use -left it will be back to 0 but you can set any value now
var win = Ti.UI.createWindow();
var view1 = Ti.UI.createView({ borderRadius: 20, backgroundColor:'#123' });
var view2 = Ti.UI.createView({ borderRadius: 20, backgroundColor:'#246' });
var view3 = Ti.UI.createView({ borderRadius: 20, backgroundColor:'#48b' });
var scrollableView = Ti.UI.createScrollableView({
  views:[view1,view2,view3],
	height: 300,
	clipViews: false,
  padding: {
		left: 100,
		leftAdjust: -100,	// <------- new value
		right: 100,
	}
});
win.add(scrollableView);
win.open();
https://github.com/tidev/titanium-sdk/assets/4334997/a85b0622-19fd-4e07-9bbc-346cc4238ced
Todo:
- [x] Docs
- [ ] Possible on iOS?