GithubHelp home page GithubHelp logo

xamarin.riseplugin.floatingactionbutton's People

Contributors

cemozguraa avatar druffl3 avatar kennydizi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xamarin.riseplugin.floatingactionbutton's Issues

Incorrect display of the main button if the sub button has a different size on IOS

When setting sub button height that differs from MainButton, MainButton has incorrect display on IOS.
Here is code :

private void InitializeFab()
    {
        var btnFabMain = new ActionButtonView
        {
            BackgroundColor = Color.Aqua,
            SelectedColor = Color.Aqua,
            HeightRequest = 60,
            Margin = new Thickness(20, 10, 10, Device.RuntimePlatform == Device.Android ? 185 :20 )
        };
        var btnFabNewClient = new ActionButtonView()
        {
            BackgroundColor = Color.Aqua,
            HeightRequest = 52,
            SelectedColor = Color.Aqua,
        };

        COAFloatingactionbutton.Current.SubViews.Add(btnFabNewClient);
        btnFabMain.Click += btnFabMain_Click;
        COAFloatingactionbutton.Current.ActionOrientation = StackActionOrientation.Right;
        COAFloatingactionbutton.Current.OpeningType = ActionOpeningType.VerticalTop;
        COAFloatingactionbutton.Current.MainButtonView = btnFabMain;
        COAFloatingactionbutton.Current.Open();
    }

image

ActionButtonView Left and Right button margins are not working.

No matter what value I provide for Right and Left margin, it simply doesn't change anything.

Here's what I am trying:

var btn = new ActionButtonView() { BackgroundColor = Color.Aqua, SelectedColor = Color.Brown, HeightRequest = 50, Icon = "logo.png" };
btn.Margin = new Thickness(20, 10, 100, Device.RuntimePlatform == Device.Android ? 80 : 10);
COAFloatingactionbutton.Current.ActionOrientation = StackActionOrientation.Right;
COAFloatingactionbutton.Current.MainButtonView = btn;
COAFloatingactionbutton.Current.Open();

And this is my result:
fab_right_issue

You can notice that there is no space to the right of the button.

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.