We consider the free-surface flow of liquid of finite depth over a bubble trapped on a plane wall. The flow is assumed to be inviscid and irrotational. The problem is formulated using an integral equation and the solution is obtained numerically using a collocation method. The choices for the two contact angles where the bubble is attached to the wall are shown to depend crucially on the bubble drag. For supercritical flow, the bubble drag is zero and the contact angles are required to be equal. For either subcritical or critical flow, the bubble drag is non-zero. In either case, only one of the contact angles may be chosen freely and the second emerges as part of the solution. The effect of the free surface on the shape of the bubble is demonstrated under a variety of flow conditions.