Skip to content

Commit a94c3d5

Browse files
view height fix
1 parent 4ae9a56 commit a94c3d5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

includes/MultiSearchController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function get_multi_search_result( \WP_REST_Request $request ) {
142142
*
143143
* @param \WP_REST_Request $request the REST request object
144144
*/
145-
function get_tooltip_search_result( \WP_REST_Request $request ) {
145+
public function get_tooltip_search_result( \WP_REST_Request $request ) {
146146
$postId = sanitize_text_field( $request->get_param( 'postId' ) );
147147

148148
$url = USER_INTERACTION_SERVICE_BASE . 'postContent/';

src/components/HelpCenter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ const HelpCenter = () => {
108108
className="nfd-help-center"
109109
id="helpcenterResultsWrapper"
110110
ref={wrapper}
111+
style={isTooltip ? { height: window.innerHeight - 100 } : undefined}
111112
>
112113
{renderResultContainer()}
113114
{!isTooltip && <SearchInput />}

0 commit comments

Comments
 (0)