mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure text is visible in the SQL Filter dialogue. Fixes #3478
This commit is contained in:
parent
41a8333145
commit
d1784137a5
@ -2075,7 +2075,14 @@ define([
|
||||
var self = this;
|
||||
/* self.sqlCtrl is null when Definition tab is not active */
|
||||
if(self.sqlCtrl) {
|
||||
let sqlEditPreferences = pgAdmin.Browser.get_preferences_for_module('sqleditor');
|
||||
|
||||
/* This control is used by filter dialog in query editor, so taking preferences from window
|
||||
* SQL Editor can be in different tab
|
||||
*/
|
||||
let browser = window.opener ?
|
||||
window.opener.pgAdmin.Browser : window.top.pgAdmin.Browser;
|
||||
|
||||
let sqlEditPreferences = browser.get_preferences_for_module('sqleditor');
|
||||
|
||||
$(self.sqlCtrl.getWrapperElement()).css(
|
||||
'font-size',SqlEditorUtils.calcFontSize(sqlEditPreferences.sql_font_size)
|
||||
|
@ -617,7 +617,7 @@ class Preferences(object):
|
||||
try:
|
||||
pref.set(value)
|
||||
except Exception as e:
|
||||
current_app.logger.exeception(e)
|
||||
current_app.logger.exception(e)
|
||||
return False, str(e)
|
||||
|
||||
return True, None
|
||||
|
Loading…
Reference in New Issue
Block a user