~aw/openobject-client/5.0

« back to all changes in this revision

Viewing changes to bin/widget/view/form_gtk/many2one.py

  • Committer: Jacques-Etienne Baudoux
  • Date: 2010-07-13 10:59:12 UTC
  • Revision ID: jba@openerp.com-20100713105912-jdns2z6abglqzhke
[FIX] dialog window size should be be bigger than the screen size otherwise useless scrollbars appears in case of invisible elements in the screen

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
        vp.add(self.screen.widget)
92
92
 
93
93
        x,y = self.screen.screen_container.size_get()
 
94
        x+=20
 
95
        y+=25
94
96
        width, height = window.get_size()
95
97
        if not target:
96
 
            vp.set_size_request(min(width - 20, x + 20),min(height - 60, y + 25))
 
98
            vp.set_size_request(min(width - 20, x),min(height - 60, y))
97
99
        else:
98
100
            vp.set_size_request(x,y)
99
101
        self.dia.show_all()