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

unable to get styles in firefox,IE #1

Closed
ghost opened this issue Jan 2, 2018 · 9 comments
Closed

unable to get styles in firefox,IE #1

ghost opened this issue Jan 2, 2018 · 9 comments

Comments

@ghost
Copy link

ghost commented Jan 2, 2018

It is working good in chrome,but unable to get styles in firefox,IE.

@kappys1
Copy link
Owner

kappys1 commented Jan 2, 2018

Hi!
Do you have images in your slides? this can the reason for your problem in firefox and IE.
If your want solve quickly this problem you can try add in your css pointer-events: none;
for example:
.item-carousel img{ pointer-events: none; }

I will solve this for the next releases!
Thanks

@ghost
Copy link
Author

ghost commented Jan 2, 2018

hi,
Thanks for reply.
I dont have any images in my slide
My code is simply like this,
Cube -mode working fine in chrome,but in firefox it is simply like normal slide,below i am attaching screenshots

<carousel-component class="cube-mode" [mode]="'horizontal'" [perspective]="100" #topCarousel >

            <h1>Question 1</h1>
            <button type="button" class="btn btn-primary" (click)="forBeforeSlide()">Previous</button>
            <button  type="button" class="btn btn-primary" (click)="forNextSlide()">Next</button>
        </div>
        <div class="item-carousel">
           
            <h1>Question 2</h1>
            <button type="button" class="btn btn-primary" (click)="forBeforeSlide()">Previous</button>
            <button  type="button" class="btn btn-primary" (click)="forNextSlide()">Next</button>
        </div>
        <div class="item-carousel">
            
            <h1>Question 3</h1>
            <button type="button" class="btn btn-primary" (click)="forBeforeSlide()">Previous</button>
            <button  type="button" class="btn btn-primary" (click)="forNextSlide()">Next</button>
        </div>
       <div class="item-carousel">
            
            <h1>Question 4</h1>
            <button type="button" class="btn btn-primary" (click)="forBeforeSlide()">Previous</button>
            <button  type="button" class="btn btn-primary" (click)="forNextSlide()">Next</button>
        </div>

In this i am getting cube mode in chrome,but not in firefox and IE

In firefox like this....
screenshot from 2018-01-02 14-37-57

in chrome it is fine...
screenshot from 2018-01-02 14-39-23

@kappys1
Copy link
Owner

kappys1 commented Jan 2, 2018

I think that you don't init fine the carousel-component, I don't see the tag close.
And I don't see the open div item-carousel...
this is a problem? if you want you can't show me the problem on plunkr or similar because If you enter in my examples page with firefox, the cube mode works fine

@ghost
Copy link
Author

ghost commented Jan 2, 2018

Hi,
I properly closed my tag also..
I also tried with below simple code,what you gave in your example,

In Html:-

<carousel-component class="cube-mode" [mode]="'horizontal'" [perspective]="100" #topCarousel>





Result In Chrome:

screenshot from 2018-01-02 15-57-25

Result in firefox and IE:

screenshot from 2018-01-02 15-58-14

can you please help me to solve this?
am i missing any thing here?
I am also added this module in app.module.ts:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { DataTablesModule } from 'angular-datatables';
import {HttpClientModule} from '@angular/common/http';
import { CommonModule } from '@angular/common';
import {CarouselComponent} from "angular2-carousel";

import { AppComponent } from './app.component';
import { TaskListComponent} from './taskManagement/taskList.component';
import { AddTask} from './addTask/addTask.componnet';
import {EditTask} from './editTask/editTask.component';
import {HomeComponnet} from './home/home.component';
import {CarouselModule} from "angular2-carousel";

@NgModule({
declarations: [
AppComponent,
TaskListComponent,
AddTask,
EditTask,
HomeComponnet
],
imports: [
BrowserModule,
FormsModule,
RouterModule.forRoot(routes),
DataTablesModule,
HttpClientModule,
CommonModule,
CarouselModule
],
providers: [DataManagerService],
bootstrap: [AppComponent]
})

export class AppModule {

}

And also in Component,

@kappys1
Copy link
Owner

kappys1 commented Jan 2, 2018

Thanks for your issue, I find a bug because I don't know why the component doesn't inject fine the perspective property...
In next release, I hope today, solve it.
but if you want set manually for continue work, you can add in your css example in plunk :

carousel-component .container {
    -webkit-perspective: 300px;
    -moz-perspective: 300px;
    perspective: 300px;
}

change with your perspective value

@ghost
Copy link
Author

ghost commented Jan 2, 2018

Hi,
Thank you for spending your valuable time,I did changes as your plunker
still i am not getting...
In sytle:

/* Styles go here */

.a{
background-color:red;
font-size:40px;
}
.b{
background-color:blue;
font-size:60px;
color:white;
display: -ms-flexbox;
display: -webkit-flex;
display: flex!important;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.c{
background-color:yellow;
}
.e{
background-color:green;
}
.f{
background-color:purple;
}

carousel-component .container {
-webkit-perspective: 300px;
-moz-perspective: 300px;
perspective: 300px;
}

In Html:

Example Carrousel

Test in fullScreen
a
b
c
d
e
f

In chrome:

screenshot from 2018-01-02 17-01-56

In Firefox:

screenshot from 2018-01-02 17-02-32

any guess??

@kappys1
Copy link
Owner

kappys1 commented Jan 2, 2018

captura de pantalla 2018-01-02 a las 12 43 00
for my this example work fine... I don't know... can you check your version and see if is compatible? you can check availables browsers with perspective property here : https://caniuse.com/#search=perspective
Is possible that your firefox version is lower?

Other thing, you can check that the perspective property is set in component with the inspector?

@ghost
Copy link
Author

ghost commented Jan 2, 2018

Hi,
Thank you so much,
Its worked for me now.
now i add that css code globally in style.css instead of keeping that code in related css file.

@ghost ghost closed this as completed Jan 2, 2018
@kappys1
Copy link
Owner

kappys1 commented Jan 2, 2018

No worries,
I info you when the problem is solved!
Thanks for your report

@kappys1 kappys1 mentioned this issue Jan 2, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant