Center Dynamically generated Horizontal group buttons
Hi
I have a group buttons defined and they are populated dynamically by mapping a service response. The group buttons are in the footer and I want to align them center (horizontally). I couldn't define any css properties to the group buttons component from the properties. From another thread in your forum, I just tried to have the following code in the page load, but it didn't help me.
var MakeAction = function(){
var grid = Appery('buttons_grid');
grid.css({
top: '50%',
position: 'absolute',
width: '100%',
left: 0,
'margin-top': -( grid.outerHeight() / 2 )
});
alert("positionChanged");
};
$(window).bind('orientationchange', function(e) {
MakeAction();
});
MakeAction();