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

Card component flashes (blinking) #214

Closed
xereda opened this issue Nov 19, 2016 · 3 comments
Closed

Card component flashes (blinking) #214

xereda opened this issue Nov 19, 2016 · 3 comments
Milestone

Comments

@xereda
Copy link

xereda commented Nov 19, 2016

Hello,

I did some deploys with "Cordova" to see how the visual is behaving on its definitive operating systems. I found some inconsistencies, being that in this issue I will deal with the blinking card problem.

In iOS, when a collapsible element is closing, a blink occurs on the card. I made a video as app running inside an iPhone 5 with ios10.1):

http://sendvid.com/di9y63r3

To help debugging, I also did a simulation with "cordova run browser". And problems do not occur. Watch:

http://g.recordit.co/PexNBeijnY.gif
d

E) quasar code:

<template>
  <div>
    <div class="layout-padding">
      <div class="card">
        <div class="item three-lines">
          <img class="item-primary" src="statics/img/avatars/1.jpg">
          <div class="item-content has-secondary">
            <div>Mauriano Salazar</div>
            <div>
              <span>Cardiologia</span><br />
              (crm 988987)
            </div>
          </div>
          <div class="item-secondary stamp">
            550m
          </div>
          <i class="item-secondary">location_on</i>
        </div>
        <div class="card-content">


            <div class="list item-delimiter">
              <quasar-collapsible icon="info_outline" label="Resumo">
                <div class="text-justify thin-paragraph" style="font-size:.9em; margin-bottom:1em; margin-top:1em;">
                  Dr. Mauriano Salazar graduou-se em medicina pela UNIPAC, no ano de 1999.
                  Especializou-se em Cardiologia e Terapia Intensiva (CTI) pela Fundação Mario Pena e Hospital Luxemburgo, em Belo Horizonte.
                  Após esse período, trabalhou como Cardiologista em hospitais, Unidades Coronarianas e Centros de Tratamento Intensivo.
                  Nesta ultima década dedicou-se a estudos que abrangeram não somente a área de Cardiologia,
                  mas também a Fisiologia, Neurociências, Psicologia, mudança de comportamento e cardiologia esportiva.
                </div>
              </quasar-collapsible>
              <quasar-collapsible icon="add_location" label="Locais de Atend.">
                <div class="locais-main">
                  <div class="item multiple-lines">
                    <div class="item-content has-secondary local">
                      <div>Clínica Salutare</div>
                      <div class="item-label item-smaller addressDetail">Rua Dona Francisca 3775</div>
                      <div class="item-label item-smaller addressDetail">Saguaçú - CEP 89765003</div>
                      <div class="item-label item-smaller addressDetail text-italic">( a 550m )</div>
                      <div class="item-label item-smaller text-italic">
                        <span class="label bg-green text-white labelConvenio">Unimed</span>
                        <span class="label bg-white text-red labelConvenio agemed">Agemed</span>
                        <span class="label bg-blue-10 text-white labelConvenio">Amil</span>
                        <span class="label bg-red text-white labelConvenio">Bradesco</span>
                      </div>
                    </div>
                    <div class="item-secondary">
                      <i>
                        place
                      </i>
                    </div>
                  </div>
                  <div class="item multiple-lines">
                    <div class="item-content has-secondary">
                      <div>Clínica Heart</div>
                      <div class="item-label item-smaller addressDetail">Rua Marques de Olinda 2371</div>
                      <div class="item-label item-smaller addressDetail">Glória</div>
                      <div class="item-label item-smaller addressDetail">CEP 89570133</div>
                      <div class="item-label item-smaller addressDetail text-italic">( a 1,2 km )</div>
                      <div class="item-label item-smaller text-italic">
                        <span class="label bg-green text-white labelConvenio">Unimed</span>
                        <span class="label bg-white text-red labelConvenio agemed">Agemed</span>
                        <span class="label bg-yellow text-blue-10 labelConvenio">Cassi</span>
                      </div>
                    </div>
                    <div class="item-secondary">
                      <i>
                        place
                      </i>
                    </div>
                  </div>
                </div>
              </quasar-collapsible>
              <quasar-collapsible icon="assignment_turned_in" label="Áreas de atuação">
                <div class="area-atuacao-main">
                  <div class="row area-atuacao">
                    <i class="area-atuacao-icon">check</i> Cardiopatia Congênita do Adulto
                  </div>
                  <div class="row area-atuacao">
                    <i class="area-atuacao-icon">check</i> Risco Cirúrgico
                  </div>
                  <div class="row area-atuacao">
                    <i class="area-atuacao-icon">check</i> Acompanhamento Cardiológico de Atletas
                  </div>
                  <div class="row area-atuacao">
                    <i class="area-atuacao-icon">check</i> Cardiologia Fetal
                  </div>
                  <div class="row area-atuacao">
                    <i class="area-atuacao-icon">check</i> Cardiologia Pediátrica
                  </div>
                </div>

    <button type="button" name="button" @click="teste()">teste</button>

              </quasar-collapsible>
            </div>

        </div>
        <div class="card-actions">
          <div class="auto text-primary">
            <i>star</i> 4,5 de média
          </div>
          <div class="auto text-primary">
            <i>mode_comment</i> 8 comentários
          </div>
        </div>
      </div>
    </div>

    <button @click="scheduleRequest(false)" class="negative circular shadow-3 absolute-bottom-right" style="right:20px; bottom:25px;"><i>today</i></button>

  </div>
</template>

<script>
import { mapActions } from 'vuex'
import { ActionSheet, Toast } from 'quasar'

export default {
  mounted () {
    this.setHeaderTitle('Mauriano Salazar')
  },
  methods: {
    ...mapActions([
      'setHeaderTitle'
    ]),
    scheduleRequest (gallery) {
      ActionSheet.create({
        title: 'Solicitar Agenda',
        gallery: gallery,
        actions: [
          {
            label: 'Delete',
            icon: 'delete',
            handler () {
              Toast.create('Deleted Article')
            }
          },
          {
            label: 'Share',
            icon: 'share',
            handler () {
              Toast.create('Shared!')
            }
          },
          {
            label: 'Play',
            icon: 'gamepad',
            handler () {
              Toast.create('Launched Game')
            }
          },
          {
            label: 'Favorite',
            icon: 'favorite',
            handler () {
              Toast.create('Added to favorites')
            }
          }
        ],
        dismiss: {
          label: 'Cancel',
          icon: 'cancel',
          classes: 'text-primary',
          handler () {
            const _msg = 'Enter here only when you click the cancel button!'
            Toast.create(_msg)
            console.log(_msg)
          }
        }
      })
    }
  }
}

</script>

<style scoped>
  .locais-main {
  }
  .local {
    margin-bottom: 1em;
  }
  .addressDetail {
    font-size: .75em !important;
  }
  .labelConvenio {
    font-size: .95em !important;
    margin-top: 6px;
  }
  .agemed {
    border: 1px solid red;
    height: 1.75em;
  }
  .area-atuacao-main {
    margin-top: 1em;
    margin-bottom: 1em;
  }
  .area-atuacao {
    font-size: .85em;
    font-style: italic;
    margin-bottom: .2em;
  }
  .area-atuacao-icon {
    margin-right: 5px;
  }

</style>

Thanks in advance for your help,

@xereda xereda changed the title Card component flashes (blinking). Card component flashes (blinking) Nov 19, 2016
@xereda
Copy link
Author

xereda commented Nov 25, 2016

I was wondering if you understood what happens reported on this issue.

@rstoenescu
Copy link
Member

Yes I've seen the blinking. Didn't have time to investigate yet.

@rstoenescu rstoenescu added this to the v0.10 milestone Dec 6, 2016
@rstoenescu rstoenescu modified the milestones: v0.11, v0.10, v0.12 Dec 16, 2016
@rstoenescu rstoenescu modified the milestones: v0.13, v0.14 Jan 24, 2017
@rstoenescu
Copy link
Member

Fixed in v0.13 and Quasar edge by the new slide transition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants