Skip to content
New issue

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

Cannot read property 'left' of undefined error when populating Galleria with observable data #262

Closed
EBozan opened this issue Apr 27, 2016 · 4 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@EBozan
Copy link

EBozan commented Apr 27, 2016

html...

<p-galleria panelWidth="500" panelHeight="313">
    <ul>
        <li *ngFor="#image of images;#i = index;">
            <img src="images/{{image.path}}" alt="Description for Image {{i}}" title="Image {{i}}"/>
        </li>
    </ul>
</p-galleria>

component...

 images: imageModel[] = new Array<imageModel>();

    ngOnInit() {
        this._mediaService.GetImages()
            .subscribe(
            data => {
               this.images = data;                
          });}

service ...

    GetImages(){

        let headers = new Headers();
        headers.append('Authorization', 'Bearer ' + window.localStorage.getItem("authkey"));

        return this.http.get(AppSettings.API_ENDPOINT + 'api/Media', {
            headers: headers
        })
            .map(res=> res.json())
            .catch(this.handleError)
    };

@cagataycivici
Copy link
Member

We've replicated this and being worked on.

@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Apr 27, 2016
@cagataycivici cagataycivici added this to the 1.0.0-beta.4 milestone Apr 27, 2016
@cagataycivici
Copy link
Member

@Mrtcndkn New native galleria should fix this, please test and confirm.

@Mrtcndkn
Copy link
Contributor

@EBozan Galleria is native now and the problem is fixed.

@EBozan
Copy link
Author

EBozan commented Apr 29, 2016

Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants