score:0
Accepted answer
As I was writing this question discovered the answer. Figured I might as well post and share.
The CSS Absolute Position fix DOES WORK, however in this particular case the fix is not done in the CSS, but in the Javascript. That is because @react-google-maps/api, uses mapContainerStyle={mapContainerStyle}
, which seems to be a required field (although the docs don't make that clear).
After modying mapContainerStyle from
const mapContainerStyle = {
height: "100vh",
width: "100vw"
};
to
const mapContainerStyle = {
position: "absolute",
top: "305px",
left: "0px",
right: "0px",
bottom: "0px"
};
The page displays as intended! See Demo
Source: stackoverflow.com
Related Query
- GoogleMap with header div extends beyond window size
- Imitate 1920x1080 window in a smaller div with sizing of elements
- Header flickering and freezing issue with material table (implemented with react window + react window infinite loader)
- how to put div below header div and above footer div with full height html
- Header div stays at top, vertical scrolling div below with scrollbar only attached body
- div alignment is not properly working on the header with menu
- Sync scroll react. div block with main scroll on window
- div will not change size with CSS properties
- Fixed header needs to stay at top, fixed footer needs to stay at bottom, remaining amount of space fills main div with content
- Put many pictures into one div with specific size
- Detecting when user scrolls to bottom of div with React js
- Figuring out how to mock the window size changing for a react component test
- Scrollable div to stick to bottom, when outer div changes in size
- Focusing div elements with React
- How to detect window size in Next.js SSR using react hook?
- tooltip div with ReactJS
- How to pass Header JWT Token with Axios & React?
- Mocking Window with Sinon, Mocha, Enzyme, and React
- React Navigation Header in Functional Components with Hooks
- React table dynamic page size but with size limit and pagination
- Hide header on StackNavigator with React Navigation in React Native
- Window is not defined after a build with Webpack
- window is not defined - react-draft-wysiwyg used with next js (ssr)
- Bootstrap 4 table with the scrollable body and header fixed
- Failed to load resource: the server responded with a status of 431 (Request Header Fields Too Large)
- Validating file size and format with YUP
- Change the size of a checkbox with Material UI
- Fetch Post issues with CORS not getting header
- React Material-Ui Sticky Table Header with Dynamic Height
- What is the best way to test Window Scroll Event Handlers with Enzyme?
More Query from same tag
- Multiple submissions in one Textfield overrides the previous value that was saved
- useEffectHook in web form
- Firebase Auth - User not logged in after Firebase sign up and redirect
- Gulp stops rebundling after few times
- Linking to page causes re-render of entire page in NextJS
- setState in separated component
- How can I create secure CRUD operation using MERN stack
- Can I use webpack's hot module reloading with sailsjs?
- onClick called repeatedly (not supposed to) when component re-renders
- Formik in tabs React
- Usage of MQTT protocol in React
- React HOC that takes argument instead of component and returns component
- How to unshift item to top but always to same position?
- CORS issue with Django and React hosted on same server
- console.log when used in setInterval function is running infinite times
- Exporting formData from React to Spring boot backend
- How to implement geolocation in a react app with Google Maps JS API instead of hard-coded location?
- Ruby Sinatra Sessions in a JSX file?
- to call onChange event after pressing Enter key
- React one time API call for multiple routes design
- Onclick of Steps in timeline component in react should be set as active and change color of timeline
- Set border for Tab indicator in Material UI
- How can I import multiple components from react-bootstrap?
- undefiend parameter in function while passing it through props react js
- Sorting an array by the children attribute in react
- React on attribute change
- ReactJS how to update array state?
- SCSS files not compiling to CSS in react using Webpack
- Tri-State Close Button
- React Router 4 and enzyme