Repository navigation
Description
Summary
In the Android app, a native <select> inside a plugin page opens its option list at the top of the screen, right under the status bar, instead of next to the field. It happens only on wide windows (an unfolded Galaxy Z Fold, tablets). On phone-width windows the WebView shows the centered picker dialog and nothing is wrong. The same page in a desktop or mobile browser opens the list under the field.
Versions and environment
- bb from source at
main92dc2c1a1, started withpnpm start:worktreeon a clean data dir (macOS 26). - Android app built from the same commit:
apps/mobilepnpm build:android:dev(app.getbb.mobile.dev),react-native-webview13.16.1 with bb's patch, React Native 0.86.2, Expo 57. - Android 16 (API 36) emulator, Android System WebView 133.0.6943.137, window resized to an unfolded Fold:
adb shell wm size 1856x2160 && adb shell wm density 420. - First seen on a real Galaxy Z Fold8 (unfolded) with the bb Android app.
Steps to reproduce
-
Create a plugin whose page has a native
<select>below the top of the page. Minimal plugin (bb plugin new select-repro, then replaceapp.tsxandserver.ts):// app.tsx import { useState } from "react"; import { definePluginApp } from "@get-bb/plugin-sdk/app"; function SelectReproPage() { const [value, setValue] = useState("apple"); return ( <div style={{ padding: 24, maxWidth: 560 }}> <h1>Native select repro</h1> <div style={{ marginTop: 240 }}> <select value={value} onChange={(event) => setValue(event.target.value)} style={{ width: "100%", fontSize: 16 }}> <option value="apple">Apple</option> <option value="banana">Banana</option> <option value="cherry">Cherry</option> </select> <p>Selected: {value}</p> </div> </div> ); } export default definePluginApp((app) => { app.slots.navPanel({ id: "select-repro", title: "Select repro", icon: "ListTodo", path: "select-repro", component: SelectReproPage }); });
// server.ts import type { BbPluginApi } from "@get-bb/plugin-sdk"; export default async function plugin(bb: BbPluginApi) { bb.log.info("loaded"); }
-
bb plugin install .on a bb server. -
On Android, use a wide window: an unfolded Fold or a tablet. On an emulator, run
adb shell wm size 1856x2160 && adb shell wm density 420, then restart the app. -
Connect the app to the server, open Select repro from the navigation rail, and tap the field.
Did not reproduce: the same page at phone width (centered dialog, correct), and the same page in Chrome on desktop and Android (list under the field).
Expected vs actual
- Expected: the option list opens next to the field, as in a browser.
- Actual: the option list opens at the top-left of the WebView, right under the status bar, as wide as the screen. Selecting an option still works.
Left: main. Right: with the fix proposed below.
Evidence
On wide windows Chromium does not show the picker dialog. It shows a dropdown anchored to a child view it adds to the WebView: com.google.android.webview:id/dropdown_popup_window. While the list is open, adb shell dumpsys activity top shows that anchor never laid out:
com.reactnativecommunity.webview.RNCWebView{… 0,0-1856,2160 …}
android.view.View{6a969d8 V.ED..... ......I. 0,0-0,0 #2010086 com.google.android.webview:id/dropdown_popup_window}
Its bounds stay 0,0-0,0, and the I flag means it requested layout but never got one. React Native does not run layout for child views it did not create, so the anchor stays at the WebView's origin and the list opens there.
The same bug is reported against react-native-webview as react-native-webview#3424. The stale bot closed it; the latest comments say it still happens. RNCWebView.java in react-native-webview v16.0.0 has no change in this area.
The bb shell renders every page in that WebView (ProfileWebViewScreen.tsx). bb's own UI uses custom selects, so this only shows on plugin pages that use a native <select>.
What you ruled out
- No bb issue or PR matches "select" with "android", "webview", or "dropdown".
- Not the plugin page's CSS: no ancestor has
zoom,transform, orposition: fixed, and the page is correct in a browser. - Not window insets: the anchor is at
0,0inside the WebView. It is not offset by the status bar height. - Still happens on
mainat92dc2c1a1with a clean data dir.
Suggested priority and effort
Low to medium. It affects plugin pages with native selects on Android tablets and foldables. Workaround: plugins can draw their own dropdown. No data loss. The fix is a few lines in bb's existing react-native-webview patch (PR to follow).
Checks
- I reproduced this on the latest release or on
main, or I say above that I could not. - I searched open and closed issues for the same problem.
- If an agent wrote this, the body ends with
> AGENT GENERATEDand links the thread or report. (Investigated in a local bb thread; the fix is on Willhong/bbfix/android-select-dropdown-anchor.)
AGENT GENERATED

Activity
bb-slop-cop commentedon Oct 9, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotmobile.no-repro.Anchor native select dropdowns on Android large screens (get-bb#5250)