Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2987] Facebook button style: wide. Bug after going back to login window. Facebook button is squeezed!

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2011-06-25T03:35:39.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsfacebook, iphone
ReporterKarol Pomaski
AssigneeTony Guntharp
Created2011-05-25T09:17:29.000+0000
Updated2016-03-08T07:47:59.000+0000

Description

In my application I have a login window. Through this we are able to login using facebook account. So we click on the button and we log in (the window changes). Later if we would like to log out we press the button and we return back to the login window on which we see the "Login with Facebook" button squeezed. The facebook button code:
var fbButton = Titanium.Facebook.createLoginButton({
     bottom: 30,
     style: 'wide'
});

The logout code:
Titanium.Facebook.addEventListener('logout', function()
{
    bAutenticated = false;
    sUser = '';
    LogOut();
});
Titanium.App.addEventListener('LogOut', function(e){
    bAutenticated = false;
    sUser = '';
	Titanium.Facebook.logout();
    LogOut();
});
function LogOut()
{
    tabGroup.close();
    tabGroup.removeTab(tab1);
    tabGroup.removeTab(tab2);
    tabGroup.removeTab(tab3);
    tabGroup.addTab(tab);
    tabGroup.setActiveTab(0);
    tabGroup.open({
        transition:Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT
    });
};
I also enclose the printscreens (one is before we login and the second screen after logout).

Attachments

FileDateSize
Screen shot 2011-05-25 at 11.14.51 AM.png2011-05-25T09:17:29.000+000020417
Screen shot 2011-05-25 at 11.15.53 AM.png2011-05-25T09:17:29.000+000015899

Comments

  1. Paul Dowsett 2011-05-30

    In order for us to progress this issue, please edit your ticket to include a proper [Use-case](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases) (ie one that runs without modification) Also, state the Titanium SDK version, date and hash that exhibits the issue. Kindly read the [Submitting Bug Reports](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-SubmittingBugReports) guide before raising tickets. Thank you
  2. Paul Dowsett 2011-06-25

    No response from user
  3. Paul Dowsett 2011-08-16

    Closed after 30 days of inactivity.

JSON Source