GithubHelp home page GithubHelp logo

Bottom offset issue about panmodal HOT 5 CLOSED

slackhq avatar slackhq commented on September 18, 2024 1
Bottom offset issue

from panmodal.

Comments (5)

vkosmirak avatar vkosmirak commented on September 18, 2024 4

@ste57 Thanks! This fixed my issue

var anchorModalToLongForm: Bool {
   return true
}

from panmodal.

ste57 avatar ste57 commented on September 18, 2024

Hi @vkosmirak

Could you provide the rest of your PanModal configuration?

Stephen

from panmodal.

ste57 avatar ste57 commented on September 18, 2024

Closing out this issue for now, feel free to reopen if this continues to be an issue.

from panmodal.

vkosmirak avatar vkosmirak commented on September 18, 2024

Hey @ste57, sorry for late response. Can't find a reopen button, but will describe my scenario here:

Can't align view to the bottom of the poped controller.
Example:

  1. Open PanModel Demo
  2. AlertViewController.swift
  3. Replace coresponeded lines to new:
alertView.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true

    var shortFormHeight: PanModalHeight {
        return .contentHeight(500)
    }

    var longFormHeight: PanModalHeight {
        return .contentHeight(500)
    }
  1. What we did here - align alertView to the bottom instead of the top
  2. The problem is - this view is not visible
    Screen Shot 2019-11-12 at 1 12 39 PM
  3. Sometimes we need to align view to bottom, when there is no scroll container inside
    And the question is - is there any workaround for that?

from panmodal.

ste57 avatar ste57 commented on September 18, 2024

Hi @vkosmirak

So it looks like anchorsToLongForm may be false here. Can you make sure this property is set to true in the implementing view controller - this should allow you to anchor the alertView to the bottom of the view

from panmodal.

Related Issues (20)

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.