Mehuge commented on issue #260:
URL: 
https://github.com/apache/cordova-plugin-statusbar/issues/260#issuecomment-1820554929

   I am seeing this issue, also seeing it with a basic project:
   
   ```bash
   cordova create hello com.hello.world Hello
   cd hello
   # Add divs to body to highlight the problem (see note below)
   ed www/index.html <<EOF
   /<body>
   
   i
   <div style="position: absolute; bottom: 0; right: 0; 
     background-color: yellow; height: 25px; width: 10px"></div>
   <div style="position: absolute; top: 0; right: 0; 
     background-color: yellow; height: 25px; width: 10px"></div>
   <div style="position: absolute; top: 0; 
     background-color: yellow; height: 25px; width: 10px"></div>
   <div style="position: absolute; bottom: 0; 
     background-color: yellow; height: 25px; width: 10px">
   </div>
   .
   w
   q
   EOF
   cordova plugin add cordova-plugin-statusbar
   cordova platform add android
   cordova build android --debug -- --packageType=apk
   adb install platforms/android/app/build/outputs/apk/debug/app-debug.apk
   adb shell start am com.hello.world/.MainActivity
   ```
   config.xml does not contain any statusbar settings, its the default config.
   ```xml
   <?xml version='1.0' encoding='utf-8'?>
   <widget id="com.hello.world" version="1.0.0" 
xmlns="http://www.w3.org/ns/widgets"; 
xmlns:cdv="http://cordova.apache.org/ns/1.0";>
       <name>Hello</name>
       <description>Sample Apache Cordova App</description>
       <author email="d...@cordova.apache.org" 
href="https://cordova.apache.org";>
           Apache Cordova Team
       </author>
       <content src="index.html" />
       <allow-intent href="http://*/*"; />
       <allow-intent href="https://*/*"; />
   </widget>
   ```
   Note: When run, the 4 corner blocks (divs) that are 25px tall will show just 
1px, with 24px being clipped vertically (top and bottom).
   
   <img width="466" alt="image" 
src="https://github.com/apache/cordova-plugin-statusbar/assets/99895/d9adc079-574e-4fbf-9f57-d7d228085826";>
   
   As per 
https://github.com/apache/cordova-plugin-statusbar/issues/260#issuecomment-1620926421
 if I add `<preference name="StatusBarOverlaysWebView" value="false" />` for 
android, the webview displays correctly.
   
   <img width="471" alt="image" 
src="https://github.com/apache/cordova-plugin-statusbar/assets/99895/aa081826-09f2-4d43-8868-5d7f957dd4c2";>
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to