Bug with anchored FloatingActionButton in support library 24.2.1
<p>I have been having this issue since 24.2.0, but now I'm using 24.2.1 and the bug is still here, it only works well &lt;= 24.1.1.</p>

<p>I have an anchored FloatingActionButton done like this:</p>

<pre><code>&lt;ScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;

    &lt;android.support.design.widget.CoordinatorLayout
        android:id="@+id/contact_coordinator_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        tools:context="es.cocode.baseapp.contact.ContactFragment"&gt;

        &lt;FrameLayout
            android:id="@+id/map_fragment_container"
            android:layout_width="match_parent"
            android:layout_height="198dp"
            android:layout_marginBottom="210dp"&gt;

            &lt;fragment
                android:id="@+id/map_fragment"
                android:name="com.google.android.gms.maps.SupportMapFragment"
                android:layout_width="match_parent"
                android:layout_height="match_parent" /&gt;

        &lt;/FrameLayout&gt;

        &lt;android.support.design.widget.FloatingActionButton
            android:id="@+id/fab_fullscreen_map"
            android:src="@drawable/ic_fullscreen_white_48dp"
            android:layout_width="56dp"
            android:layout_height="56dp"
            android:layout_margin="@dimen/fab_margin"
            app:layout_anchor="@id/map_fragment_container"
            app:layout_anchorGravity="bottom|end" /&gt;

    &lt;/android.support.design.widget.CoordinatorLayout&gt;

&lt;/ScrollView&gt;
</code></pre>

<p>It usually works like this:</p>

<p><a href="https://i.stack.imgur.com/XQgEpm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XQgEpm.png" alt="FAB working well"></a></p>

<p>But sometimes the bug appears and the anchor doesn't work:</p>

<p><a href="https://i.stack.imgur.com/HV1wOm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HV1wOm.png" alt="FAB not working"></a></p>

<p>Is there a way to solve this, or should I wait until this bug gets fixed and use 24.1.1 instead?</p>