Giter Club home page Giter Club logo

ionic-prepend-bug's Introduction

Ionic InsertBefore Bug Demo

this bug demo report repo uses capacitor + ios for now , I will add android later if wanted but it's targeted at iOS users first

Description

this repo shows a bug which happens when using element.insertBefore to prepend an element. In a browser prepending an element will only keep the container scrolled top if the container is already on top, else the container will keep its position. But in ionic the container is always scrolled to top when prepending elements

Quick start

  • run npm i (takes some time)
  1. this will install all needed dependencies

  2. this will build the app as a post install

  3. this will init ionic capacitor for iOS

  4. this will launch Xcode with livereload enabled

  5. then you will need to select your simulator in Xcode (iphone 8 for example) & press run

you will be able to see it in browser here : http://localhost:8100

it will not work on a real device, for real device use npm run deploy:ios

iOS live in emulator & browser

  1. run npm dev:ios
  2. set up the project in Xcode
    1. set up bundle name "ionic.io.scroll" for example
    2. set up Signing & Capabilities
  3. launch app on emulator (not on device)
  4. App will be also at http://localhost:8100

iOS on device

  1. run npm deploy:ios
  2. set up the project in Xcode
    1. set up bundle name "ionic.io.scroll" for example
    2. set up Signing & Capabilities
  3. launch app on connected device

Android

Todo

ionic-prepend-bug's People

Contributors

mightytyphoon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.